Encode/Decode

Enterprise Security API

Methods

Functions

  • DecodeForHtml() Decodes the given encoded string.
  • DecodeFromURL() Decodes a string that has been encoded in the URL using the encodeForURL. this function is deprecated, use function ESAPIDecode('url',...) instead.
  • EncodeForCSS() Encodes the given string for safe output in CSS to reduce the risk of Cross Site Scripting attacks.
  • EncodeForDN() Encodes the given string for safe output in LDAP Distinguished Names.
  • EncodeForHTML() Encodes the given string for safe output in HTML to reduce the risk of Cross Site Scripting attacks.
  • EncodeForHTMLAttribute() Encodes the given string for safe output in HTML to reduce the risk of Cross Site Scripting attacks.
  • EncodeForJavaScript() Encodes the given string for safe output in JavaScript to reduce the risk of Cross Site Scripting attacks.
  • EncodeForLDAP() Encodes the given string for safe output in LDAP queries.
  • encodeforsql() Encodes the given string for safe output in a query to reduce the risk Cross Site Scripting attacks.
  • EncodeForURL() Encodes the given string for safe output in a URL.
  • EncodeForXML() Encodes the given string for safe output in XML to reduce the risk of Cross Site Scripting attacks.
  • EncodeForXMLAttribute() Encodes the given string for safe output in XMLAttribute to reduce the risk of Cross Site Scripting attacks.
  • EncodeForXPath() Encodes the given string for safe use in an XPath Query.
  • ESAPIDecode() Decodes a string that has been encoded with ESAPIEncode.
  • ESAPIEncode() Encodes the given string for safe output to reduce the risk of Cross Site Scripting attacks.
  • URLEncode() Encodes a string to be URL-safe according to the application/x-www-form-urlencoded MIME format