Documentation
The link in
| # see http://www.w3.org/TR/html5/syntax.html#tokenizing-character-references |
is not longer relevant and should be replace:
The link should explain the source of the replacements table:
# see http://www.w3.org/TR/html5/syntax.html#tokenizing-character-references_invalid_charrefs= {
0x00: '\ufffd', # REPLACEMENT CHARACTER0x0d: '\r', # CARRIAGE RETURN0x80: '\u20ac', # EURO SIGN0x81: '\x81', # <control>0x82: '\u201a', # SINGLE LOW-9 QUOTATION MARK0x83: '\u0192', # LATIN SMALL LETTER F WITH HOOK0x84: '\u201e', # DOUBLE LOW-9 QUOTATION MARK0x85: '\u2026', # HORIZONTAL ELLIPSIS0x86: '\u2020', # DAGGER0x87: '\u2021', # DOUBLE DAGGER0x88: '\u02c6', # MODIFIER LETTER CIRCUMFLEX ACCENT0x89: '\u2030', # PER MILLE SIGN0x8a: '\u0160', # LATIN CAPITAL LETTER S WITH CARONLinked PRs
Documentation
The link in
cpython/Lib/html/__init__.py
Line 28 in 0e081a0
The link should explain the source of the replacements table:
Linked PRs