Internet Direct (Indy)
Home
PreviousUpNext
StrHtmlEncode Function

Converts a string containing reserved HTML characters to a string using HTML Entity references.

Pascal
function StrHtmlEncode(
    const AStr: String
): String;
Parameters 
Description 
AStr 
Values to be converted to their representation as an HTML Entity reference. 

String - String containing HTML Entity references.

StrHtmlEncode is a String function that converts the string AStr containing reserved HTML characters to a string using HTML Entity references. StrHtmlEncode will convert the following reserved HTML characters to the following representations: 

 

& 
< 
> 
" 

 

Use StrHTMLDecode to convert a string containing HTML Entity references to its string representation.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.