]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-100210: Correct the comment link for unescaping HTML (#100212)
authorJean-Christophe Amiel <jeanchristophe.amiel@gmail.com>
Sun, 19 Feb 2023 10:18:12 +0000 (11:18 +0100)
committerGitHub <noreply@github.com>
Sun, 19 Feb 2023 10:18:12 +0000 (11:18 +0100)
gh-100210: correct the comment link for unescaping HTML

Lib/html/__init__.py

index da0a0a3ce70eede6a373f22d0cb9e303464c1e56..1543460ca33b0ae92b22780a4041dc36251f49a2 100644 (file)
@@ -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