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.