XMLFormat

Escapes special XML characters in a string, so that the string is safe to use with XML.

Returns: string

Usage

XMLFormat( string )

Arguments

Argument Description
string
(string, required)

A string or a variable that contains one

Examples

string = "I like peanut butter & jelly.";
dump(XmlFormat(string)); // I like peanut butter & jelly.

See also