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 stop 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 stop Cross Site Scripting attacks.
  • EncodeForHTMLAttribute Encodes the given string for safe output in HTML to stop Cross Site Scripting attacks.
  • EncodeForJavaScript Encodes the given string for safe output in JavaScript to stop Cross Site Scripting attacks.
  • EncodeForLDAP Encodes the given string for safe output in LDAP queries.
  • EncodeForURL Encodes the given string for safe output in a URL.
  • EncodeForXML Encodes the given string for safe output in XML to stop Cross Site Scripting attacks.
  • EncodeForXMLAttribute Encodes the given string for safe output in XMLAttribute to stop 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 stop Cross Site Scripting attacks.
  • URLEncode Encodes a string to be URL-safe according to the application/x-www-form-urlencoded MIME format