unescapeXml function

String unescapeXml(
  1. String text
)

Unescape XML entities.

Implementation

String unescapeXml(String text) {
  return text
      .replaceAll('&', '&')
      .replaceAll('&lt;', '<')
      .replaceAll('&gt;', '>')
      .replaceAll('&quot;', '"')
      .replaceAll('&apos;', "'");
}