XmlDefaultEntityMapping class Null safety

Default entity mapping for XML, HTML, and HTML5 entities.

Inheritance

Constructors

XmlDefaultEntityMapping(Map<String, String> entities)
Custom entity mapping.
const
XmlDefaultEntityMapping.html()
Minimal entity mapping of HTML character references.
const
XmlDefaultEntityMapping.html5()
Extensive entity mapping of HTML5 character references.
const
XmlDefaultEntityMapping.xml()
Minimal entity mapping of XML character references.
const

Properties

entities Map<String, String>
Named character references.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

decode(String input) String
Decodes a string, resolving all possible entities.
inherited
decodeEntity(String input) String?
Decodes a single character entity, returns the decoded entity or null if the input is invalid.
override
encodeAttributeValue(String input, XmlAttributeType type) String
Encodes a string to be serialized as XML attribute value.
override
encodeAttributeValueWithQuotes(String input, XmlAttributeType type) String
Encodes a string to be serialized as XML attribute value together with its corresponding quotes.
inherited
encodeText(String input) String
Encodes a string to be serialized as XML text.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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