ESAPIEncode

Warning: ESAPIEncode() is deprecated, use encodeForHTML() instead! A Railo/Lucee specific function for calling the various encodeFor functions: encodeForHTML, etc. Not supported in ACF.

ESAPIEncode(encodeFor,string) → returns string

This function requires Lucee. Not supported on Adobe ColdFusion.

Argument Reference for the ESAPIEncode function

encodeFor

Required: Yes
Required. Encode for what, valid values are: - css: for output inside Cascading Style Sheets (CSS) - dn: for output in LDAP Distinguished Names - html: for output inside HTML - html_attr: for output inside HTML Attributes - javascript: for output inside Javascript - ldap: for output in LDAP queries - url: for output in URL - vbscript: for output inside vbscript - xml: for output inside XML - xml_attr: for output inside XML Attributes - xpath: for output in XPath.

string

Required: Yes
Required. String to encode.


Fork me on GitHub