Toggles CDATA sections recognition <![CDATA[ … ]]>
. If set to false
then CDATA sections are treated as
comments.
Array of valid plural categories for the current locale, used to validate selectordinal
keys.
If undefined, the full set of valid PluralCategory keys is used. To disable this check, pass in an empty array.
Toggles processing instructions recognition <?xml-stylesheet … ?>
. If set to false
then processing
instructions are treated as comments.
Toggles self-closing tags recognition <foo/>
. If set to false
then slash in self closing tags is ignored or
processed as a part of an attribute value, depending on the markup.
By default, the parsing applies a few relaxations to the ICU MessageFormat spec.
Setting strict: true
will disable these relaxations.
Checks whether the content of the container tag should be interpreted as a markup or as a character data. Entities
aren't decoded in the content of character data tags. Useful when parsing such tags as script
, style
and
others.
The start tag token read from the source.
true
to interpret the contents of the token
container tag as a character data, false
otherwise.
Checks whether the tag has no content. Useful when parsing such tags as hr
, img
and others.
The start tag token.
true
to interpret tag as self-closing even if it isn't marked up as such, false
otherwise.
Decodes XML entities in an attribute value. If omitted then decodeText callback is used.
The attribute value to decode.
The decoded value.
Decodes XML entities in a plain text value.
The text to decode.
The decoded text.
Inspects ancestors and returns an index of an ancestor for which end tag is implied. Useful when parsing such tags
as p
, li
, td
and others.
The list of start tag tokens of current ancestors.
The token of the start tag that was read.
The index among ancestors
that points to an ancestor for which an end tag is implied or -1 if no
implicit end detected.
Rewrites argument name.
The name of an argument.
The new name of an argument.
Rewrites an attribute name.
The raw name of the attribute.
The rewritten name of the attribute.
Rewrites formatting function name.
The name of a function.
The new name of a function.
Rewrites a tag name. Start and end tags are matched via tag name comparison. Provide a rewriter to support case-insensitive tag matching.
The raw name of the tag.
The rewritten name of the tag.
Generated using TypeDoc
Array of valid plural categories for the current locale, used to validate
plural
keys.If undefined, the full set of valid PluralCategory keys is used. To disable this check, pass in an empty array.