HtmlEscape constructor

const HtmlEscape([
  1. 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 is escaped. The default is to escape all HTML characters.

Implementation

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