See also
cfxml, XmlNew, XmlParse, XmlValidate; Using XML and WDDX in the Developing ColdFusion Applications
History
ColdFusion MX: Added this function.
Parameters
Usage
This function escapes characters as follows:
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 É.
|
Example
The following example shows how XmlFormat escapes special XML characters. Use the View Source command in the browser to see the results. ColdFusion interprets the "" in the second text string as representing a single-quotation mark in text before it applies the XmlFormat function.