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


Name

Type

Description

$stringEscapeUtils.escapeHtml(str)

String

Escapes the characters in a String using HTML entities.

  • Parameter: str

  • Type: String

$stringEscapeUtils.escapeXml(str)

String

Escapes the characters in a String using XML entities.

  • Parameter: str

  • Type: 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: str

  • Type: 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: str

  • Type: String


JavaScript errors detected

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

If this problem persists, please contact our support.