Encodes a string for safe use within an XML tag body. Use encodeForXMLAttribute
for variables output inside an XML attribute value.
encodeForXML(string , [canonicalize]);
→ returns string
false
Encodes the ampersand into an XML entity.
encodeForXML("Fred & Ted")
Expected Result: Fred & Ted
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.