Internet Direct (Indy)
Home
PreviousUpNext
StrXHtmlEncode Function

Converts a string containing reserved XHTML characters to a string using XHTML Character Entity references.

Pascal
function StrXHtmlEncode(
    const ASource: String
): String;
Parameters 
Description 
ASource 
Values to be converted to their representation as an XHTML Entity reference. 

String - String containing XHTML Entity references.

StrXHtmlEncode is a String function used to convert values in ASource that may contain reserver XHTML characters to their representation as XHTML CHaracter Entities. 

StrXHtmlEncode will convert the following reserved XHTML characters to the following representations: 

 

& 
< 
> 
" 
' 

 

Use StrXHtmlDecode to convert a string containing XHTML Character Entity references to its string representation. 

StrXHtmlEncode encodes the ' character to its representation as the character entity ' which is not defined for HTML 4.

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.