Skip to content

Commit

Permalink
pythongh-100210: Correct the comment link for unescaping HTML (python…
Browse files Browse the repository at this point in the history
…GH-100212)

(cherry picked from commit 9a07eff)

Co-authored-by: Jean-Christophe Amiel <[email protected]>
pythongh-100210: correct the comment link for unescaping HTML
  • Loading branch information
jcamiel authored and miss-islington committed Feb 19, 2023
1 parent 62db23c commit 5ced514
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/html/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def escape(s, quote=True):
return s


# see http://www.w3.org/TR/html5/syntax.html#tokenizing-character-references
# see https://html.spec.whatwg.org/multipage/parsing.html#numeric-character-reference-end-state

_invalid_charrefs = {
0x00: '\ufffd', # REPLACEMENT CHARACTER
Expand Down

0 comments on commit 5ced514

Please sign in to comment.