HtmlEscape constructor

const HtmlEscape([HtmlEscapeMode mode = HtmlEscapeMode.unknown ])

Create converter that escapes HTML characters.

If mode is provided as either HtmlEscapeMode.attribute or HtmlEscapeMode.element, only the corresponding subset of HTML characters are escaped. The default is to escape all HTML characters.

Implementation

const HtmlEscape([this.mode = HtmlEscapeMode.unknown]);