entities
Enumerations
DecodingMode - Decoding mode for named entities.
EncodingMode - Encoding strategy used by
encode. EntityLevel - The level of entities to support.
Classes
HtmlEntity Decoder - Streaming decoder for HTML entities.
XmlEntity Decoder - Streaming decoder for XML entities: the five predefined named entities plus numeric character references.
Interfaces
DecodingOptions - Options for
decode. EncodingOptions - Options for
encode.
Variables
escape- Encodes all non-ASCII characters, as well as characters not valid in XML documents using numeric decimal reference (eg.
ü).
Functions
decode- Decodes a string with entities.
decodeHTML - Decodes an HTML string.
decodeHTMLAttribute - Decodes an HTML string in an attribute.
decodeHTMLStrict - Decodes an HTML string, requiring all entities to be terminated by a semicolon.
decodeXML - Decodes an XML string, requiring all entities to be terminated by a semicolon.
encode- Encodes a string with entities.
encodeHTML - Encodes all characters in the input using HTML entities. This includes characters that are valid ASCII characters in HTML documents, such as
#. encodeNon Ascii HTML - Encodes all non-ASCII characters, as well as characters not valid in HTML documents using HTML entities. This function will not encode characters that are valid in HTML documents, such as
#. encodeXML - Encodes all non-ASCII characters, as well as characters not valid in XML documents using XML entities.
escapeAttribute - Encodes all characters that have to be escaped in HTML attributes, following https://html.spec.whatwg.org/multipage/parsing.html#escapingString.
escapeText - Encodes all characters that have to be escaped in HTML text, following https://html.spec.whatwg.org/multipage/parsing.html#escapingString.
escapeUTF8 - Encodes all characters not valid in XML documents using XML entities.