◐ Shell
clean mode source ↗

Message 163634 - Python tracker

Attached another file with a dict that contains the 2231 HTML5 entities listed at http://www.w3.org/TR/html5/named-character-references.html
The dict is like:

html5namedcharref = {
    'Aacute;': '\xc1',
    'Aacute': '\xc1',
    'aacute;': '\xe1',
    'aacute': '\xe1',
    'Abreve;': '\u0102',
    'abreve;': '\u0103',
    ...
}

A better name could be found for the dict if you have better ideas (maybe html.entities.html5 only?).  The dict will be added to html.entities.