Module entities

Module entities 

Source
Expand description

HTML parsing, plain text rendering, and HTML table extraction utilities.

Structs§

EntityTable
In-memory table storing bidirectional entity lookups.

Enums§

EntitySet
Supported HTML / XML / MathML entity sets.

Functions§

escape_quoted_attr
Escape special characters for use in HTML attribute values.
escape_text
Escape HTML special characters to be used in text content.
from_entities
Replace HTML entities (named or numeric) with characters using the specified entity set.
from_entities_html4
Replace HTML 4.0 named HTML entities (named or numeric) with characters.
from_entities_html5
Replace HTML 5 named HTML entities (named or numeric) with characters.
from_entities_html32
Replace HTML 3.2 named HTML entities (named or numeric) with characters.
from_entities_mathml
Replace MathML named entities (named or numeric) with characters.
from_entities_netscape_1999
Replace Netscape 1999 HTML entities (named or numeric) with characters.
from_entities_xml
Replace XML named entities (named or numeric) with characters.
to_entities
Replace applicable characters with named HTML entities from the specified entity set.
to_entities_html4
Replace applicable characters with their HTML 4.0 named HTML entities.
to_entities_html5
Replace applicable characters with their HTML 5 named HTML entities.
to_entities_html32
Replace applicable characters with their HTML 3.2 named HTML entities.
to_entities_mathml
Replace applicable characters with their MathML named entities.
to_entities_netscape_1999
Replace applicable characters with their Netscape 1999 named HTML entities.
to_entities_xml
Replace applicable characters with their XML named entities.