Ezio Melotti <ezio.melo...@gmail.com> added the comment: 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. ---------- stage: needs patch -> patch review Added file: http://bugs.python.org/file26107/entities.py _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11113> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com