EncodeForXPath()
Encodes the given string for safe use in an XPath Query.
Requires Extension: ESAPI extension
EncodeForXPath( string=string, canonicalize=boolean );
Returns: String
Examples
enc = EncodeForXPath( "<cfscript>", true );
writeDump( enc );
See also
- Encode/Decode
- XML
- XmlFormat()
- string.encodeForXPath()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)