Web.HTTPApp.HTMLEncode
Delphi
function HTMLEncode(const AStr: String): String;
C++
extern DELPHI_PACKAGE System::UnicodeString __fastcall HTMLEncode _DEPRECATED_ATTRIBUTE1("Use TNetEncoding.HTML.Encode") (const System::UnicodeString AStr);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Web.HTTPApp.pas Web.HTTPApp.hpp |
Web.HTTPApp | Web.HTTPApp |
Description
Warning: HTMLEncode is deprecated. Please use System.NetEncoding.THTMLEncoding.
Replaces the characters with special HTML significance with the corresponding HTML character entities.
HTMLEncode replaces in AStr
the characters with special HTML significance (see the left column in the following table) with the corresponding HTML character entities (see the right column in the following table).
Special HTML character | HTML character entity |
---|---|
& | & |
< | < |
> | > |
" | " |