decodeHtmlCharacters function

String decodeHtmlCharacters(
  1. String input
)

Decodes HTML entity and numeric character references, for example decode &#35 to #.

Implementation

String decodeHtmlCharacters(String input) =>
    input.replaceAllMapped(htmlCharactersPattern, decodeHtmlCharacterFromMatch);