Constants
Length of longest entity including & and possibly ;
Length of shortest entity including & and possibly ;
Unicode replacement character (U+FFFD �)
Statics
All valid HTML entities and their expansions as
(b"©", b"©")
tuples.Functions
Escape a string including both single and double quotes.
Escape a string used in a quoted attribute.
Escape a string used in a text node, i.e. regular text.
Expand all valid entities