Top  | Previous | Next

Strings / escapeXML

escapeXML(string)

Returns the given string after being escaped to be valid for inclusion in XML. This means replacing XML special characters with their XML entity equivalents.

 

escapeXML("Use Navigate > PB to get to the Pork&Beans section.")

... returns "Use Navigate > PB to get to the Pork&Beans section."