unescape function

String unescape([
  1. String string = ''
])

The inverse of _.escape; this method converts the HTML entities &, <, >, ", and ' in string to their corresponding characters

Implementation

String unescape([String string = '']) {
  return string
      .replaceAll('&amp;', '&')
      .replaceAll('&lt;', '<')
      .replaceAll('&gt;', '>')
      .replaceAll('&quot;', '"')
      .replaceAll('&#39;', "'");
}