HTML escape modes.
Allows specifying a mode for HTML escaping that depend on the context where the escaped result is going to be used. The relevant contexts are:
All modes require escaping of &
(ampersand) characters, and may
enable escaping of more characters.
Custom escape modes can be created using the HtmlEscapeMode.HtmlEscapeMode constructor.
const HtmlEscapeMode._('attribute', true, true, false, false)
const HtmlEscapeMode._('element', true, false, false, false)
const HtmlEscapeMode._('attribute', true, false, true, false)
const HtmlEscapeMode._('unknown', true, true, true, true)