HtmlUnescape class

A Converter that takes HTML5-escaped strings (like ±42) and unescapes them into unicode strings (like ±42).

This class has a dictionary of about 270 escape sequences — the ones most often encountered in regular documents. Consider using the bigger version from package:html_unescape/html_unescape.dart if you need the converter to be as comprehensive as possible.

Inheritance

Constructors

HtmlUnescape()

Properties

hashCode int
The hash code for this object.
no setterinherited
keys List<String>
A list of keys (such as &nbsp;) recognized by this converter.
final
maxKeyLength int
The length of the longest key in keys. Used to optimize parsing.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
values List<String>
The list of values (such as ±). This list has the same length as keys, and strings in it correspond to the strings in keys at the same index.
final

Methods

bind(Stream<String> stream) Stream<String>
Transforms the provided stream.
inherited
cast<RS, RT>() Converter<RS, RT>
Provides a Converter<RS, RT> view of this stream transformer.
inherited
convert(String data) String
Converts from HTML-escaped data to unescaped string.
inherited
fuse<TT>(Converter<String, TT> other) Converter<String, TT>
Fuses this with other.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startChunkedConversion(Sink<String> sink) StringConversionSink
Starts a chunked conversion.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited