Skip to main content
Skip table of contents

StringEscapeUtils

Placeholder that forwards all method calls to StringEscapeUtils and ensures that the results are not HTML-escaped when inserted into the template.

Please refer to the original documentation for more information on implementation details.

This placeholder provides only the subset of methods from the original StringEscapeUtils that is relevant for template development.

Methods

NameTypeDescription
$stringEscapeUtils.escapeHtml(str)String


Escapes the characters in a String using HTML entities.


ParameterTypeDescription
strString
$stringEscapeUtils.escapeXml(str)String


Escapes the characters in a String using XML entities.


ParameterTypeDescription
strString
$stringEscapeUtils.unescapeHtml(str)String


Unescapes a string containing entity escapes to a string containing the actual Unicode characters corresponding to the escapes. Supports HTML 4.0 entities.


ParameterTypeDescription
strString
$stringEscapeUtils.unescapeXml(str)String


Unescapes a string containing XML entity escapes to a string containing the actual Unicode characters corresponding to the escapes.


ParameterTypeDescription
strString


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.