Topic Path: Symbol Reference > Functions > StrXHtmlEncode Function
ContentsIndexHome
PreviousUpNext
StrXHtmlEncode Function

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

File
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.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.