summaryrefslogtreecommitdiffstats
path: root/Lib/html
diff options
context:
space:
mode:
authorJean-Christophe Amiel <jeanchristophe.amiel@gmail.com>2023-02-19 10:18:12 (GMT)
committerGitHub <noreply@github.com>2023-02-19 10:18:12 (GMT)
commit9a07eff628c1cd88b7cdda88a8fd0db3fe7ea552 (patch)
treed767020b2b24c18bfca52387ac319820bd364178 /Lib/html
parent072935951f7cd44b40ee37fe561478b2e431c2fb (diff)
downloadcpython-9a07eff628c1cd88b7cdda88a8fd0db3fe7ea552.zip
cpython-9a07eff628c1cd88b7cdda88a8fd0db3fe7ea552.tar.gz
cpython-9a07eff628c1cd88b7cdda88a8fd0db3fe7ea552.tar.bz2
gh-100210: Correct the comment link for unescaping HTML (#100212)
gh-100210: correct the comment link for unescaping HTML
Diffstat (limited to 'Lib/html')
-rw-r--r--Lib/html/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/html/__init__.py b/Lib/html/__init__.py
index da0a0a3..1543460 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