[Python-checkins] [3.11] gh-100210: Correct the comment link for unescaping HTML (GH-100212) (#102044)

ezio-melotti webhook-mailer at python.org
Mon Feb 20 18:52:09 EST 2023


https://github.com/python/cpython/commit/e9103e69cd46c54276c75c0d2d0fe52e28d68809
commit: e9103e69cd46c54276c75c0d2d0fe52e28d68809
branch: 3.11
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: ezio-melotti <ezio.melotti at gmail.com>
date: 2023-02-21T07:52:02+08:00
summary:

[3.11] gh-100210: Correct the comment link for unescaping HTML (GH-100212) (#102044)

gh-100210: Correct the comment link for unescaping HTML (GH-100212)
(cherry picked from commit 9a07eff628c1cd88b7cdda88a8fd0db3fe7ea552)


gh-100210: correct the comment link for unescaping HTML

Co-authored-by: Jean-Christophe Amiel <jeanchristophe.amiel at gmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti at gmail.com>

files:
M Lib/html/__init__.py

diff --git a/Lib/html/__init__.py b/Lib/html/__init__.py
index da0a0a3ce70e..1543460ca33b 100644
--- a/Lib/html/__init__.py
+++ b/Lib/html/__init__.py
@@ -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



More information about the Python-checkins mailing list