]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-100210: Correct the comment link for unescaping HTML (GH-100212)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 19 Feb 2023 10:41:53 +0000 (02:41 -0800)
committerGitHub <noreply@github.com>
Sun, 19 Feb 2023 10:41:53 +0000 (02:41 -0800)
(cherry picked from commit 9a07eff628c1cd88b7cdda88a8fd0db3fe7ea552)

Co-authored-by: Jean-Christophe Amiel <jeanchristophe.amiel@gmail.com>
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