esapiEncode
4

Overview ColdFusion Open BlueDragon Lucee

Encodes the given string for safe output to stop Cross Site Scripting attacks.

Attributes

Name Required Type Default Description
4
encodeFor No 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
4
string No string to encode