Skip to main content



EscapeXml Function

The EscapeXml function replaces invalid XML characters (ampersand, less than, greater than, quote, and apostrophe) in a string with their valid XML equivalent.

Syntax​

EscapeXml(string)

The EscapeXml function replaces invalid XML characters (ampersand, less than, greater than, quote, and apostrophe) in a string with their valid XML equivalent.

Arguments​

string String - The string to convert.

Remarks​

Example:

EscapeXml(`"<address>Hollywood & Vine</address>"`); 
// returns <address>Hollywood &amp; Vine</address>