XmlDefaultEntityMapping class

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.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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 nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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