Skip to main content

Module html_entities

Module html_entities 

Source
Expand description

XHTML named-entity table for the JSX lexer. Port of the initializeHTMLEntities map in lib/Parser/JSLexer.cpp, but emitted sorted by name so &name; lookup is a binary search.

Statics§

HTML_ENTITIES
The XHTML named entities, sorted by name. Each entry maps an entity name (the bytes between & and ;) to its Unicode code point.

Functions§

lookup
Look up an XHTML named entity by name (the bytes between & and ;). Returns its code point, or None if unknown.