esapiDecode

Decodes a string that has been encoded with ESAPIEncode.

esapiDecode(decodeFrom, string) → returns string

This function requires Lucee.  Not supported on Adobe ColdFusion, etc.

Argument Reference

decodeFrom string
Required

given value is encoded as:

* Lucee4, Lucee 5+ url
* Lucee 5+ HTML

string string
Required

string to encode

Compatibility

Lucee:

DEPRECATED since version 5

Examples
Sample code invoking the esapiDecode function

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub