Whatever message this page gives is out now! Go check it out!
XmlFormat(string, escapeChars)Parameter | Description |
string | A string or a variable that contains one |
escapeChars | Set to true to escape the characters restricted as per XML standards. For details, see http://www.w3.org/TR/2006/REC-xml11-20060816/#NT-RestrictedChar. |
Text character | Escaped representation |
Greater than symbol (>) | > |
Less than symbol (<) | < |
Single-quotation mark (') | ' |
Double-quotation mark (") | " |
Ampersand symbol (&) | & |
Carriage return (but not line feed) | Removed from the text. |
High ASCII characters in the range 159-255. | Replaced by unicode escape sequence; for example, (capital E with an Acute symbol) is replaced by É. |
<?xml version = "1.0"?>
<cfoutput>
<someXML>
<someElement someAttribute="#XmlFormat("'a quoted value'", "true")#">
#XmlFormat("Body of element with <, >, "" and & goes here.", "true")#
</someElement>
</someXML>
</cfoutput>