HtmlEscape class

Converter which escapes characters with special meaning in HTML.

Converter which escapes characters with special meaning in HTML.

The converter finds characters that are siginificant in HTML source and replaces them with corresponding HTML entities.

The characters that need escaping in HTML are:

Escaping > (greater than) isn't necessary, but the result is often found to be easier to read if greater-than is also escaped whenever less-than is.

Extends

Constructors

HtmlEscape([HtmlEscapeMode mode = HtmlEscapeMode.UNKNOWN])
const
Create converter that escapes HTML characters.

Instance Properties

mode HtmlEscapeMode
read-only
The HtmlEscapeMode used by the converter.

Instance Methods

convert(String text) → String
Converts [input] and returns the result of the conversion.
startChunkedConversion(Sink<String> sink) → StringConversionSink
Starts a chunked conversion.
fuse(Converter<String> other) → Converter<String> Inherited
Fuses this with other.
bind(Stream stream) → Stream Inherited
Transform the incoming [stream]'s events.
fuse(Converter<String> other) → Converter<String> Inherited
Fuses this with other.