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

Name Type Description
$stringEscapeUtils.escapeHtml(str) String

Escapes the characters in a String using HTML entities.

Parameter Type Description
str String
$stringEscapeUtils.escapeXml(str) String

Escapes the characters in a String using XML entities.

Parameter Type Description
str String
$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.

Parameter Type Description
str String
$stringEscapeUtils.unescapeXml(str) String

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

Parameter Type Description
str String