Expand description
The WHATWG named character references — GENERATED, do not hand-edit.
Regenerate with python3 scripts/dev/gen-html-entities.py; html_entity_table_lock fails if
this file and that generator disagree.
★ WHY THE WHOLE LIST. The tokenizer used to know fifteen names and pass everything else
through as literal text, so é painted the six characters é onto the page
instead of é — a silent wrong render, in ordinary prose, with nothing anywhere reporting
it. Ninety-three of these names map to MORE THAN ONE code point, which is why the value is a
string and not a char.
Constants§
- LONGEST_
NAME - The longest name in
NAMED, excluding the∧. The tokenizer scans no further than this looking for the closing;, so a stray&in prose costs a bounded look-ahead.
Statics§
- NAMED
- Every named reference the HTML standard defines, sorted by name for binary search.
Functions§
- named
- The text a named reference stands for, or
Nonewhen the name is not one the standard defines (in which case the source text was never a reference and must survive as typed).