escapeHTML method
Return the HTML escaped version of a string
Implementation
String escapeHTML() => this
.split('')
.map((e) => REGEXP_HTML_SPECIAL_CHARACTERS.hasMatch(e)
? _escapeCharactersMap[e]
: e)
.join();
Return the HTML escaped version of a string
String escapeHTML() => this
.split('')
.map((e) => REGEXP_HTML_SPECIAL_CHARACTERS.hasMatch(e)
? _escapeCharactersMap[e]
: e)
.join();