Gets the character of this character reference.
Sets the character of this character reference.
Gets whether the decimal or hexadecimal representation should be used for this character reference.
Sets whether the decimal or hexadecimal representation should be used for this character reference.
Returns an XML string representation of this character reference.
Returns the parent of this character reference.
Generated using TypeDoc
Represents a character reference.
A character reference is structured as follows, where
{dec}
is the decimal representation code point corresponding to a particular Unicode character:The corresponding hexadecimal version is structured as follows, where
{hex}
is the hexadecimal representation code point corresponding to a particular Unicode character:Unicode characters outside of the Basic Multilingual Plane are represented using a surrogate pair consisting of two character references.
The
{dec}
and{hex}
values are defined by thechar
andhex
properties of this node; the former is the character to be represented while the latter indicates whether the decimal or hexadecimal representation should be used.