×

You're using an outdated browser

For a better experience, keep your browser up to date. Check here for the latest version.

Manual

StringEscapeUtils

Thomas Walker

Thomas Walker Last update: Aug 7, 2017

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

2x2.10
We use cookies to create a secure and effective browsing experience for our website visitors and to understand how you use our site (i.e. Google Analytics). For more information: click here.
Ok