toHtmlText method
Escapes HTML special characters (<, >, &, ", ').
Implementation
String toHtmlText() => replaceAll('&', '&')
.replaceAll('<', '<')
.replaceAll('>', '>')
.replaceAll('"', '"')
.replaceAll("'", ''');