gh-100210: Correct the comment link for unescaping HTML (#100212) · python/cpython@9a07eff

GitHub

GitHub CopilotWrite better code with AI | MCP RegistryIntegrate external tools | ActionsAutomate any workflow | CodespacesInstant dev environments | IssuesPlan and track work | Code ReviewManage code changes | Code QualityEnforce quality at merge | Why GitHub | Marketplace | View all features | Enterprises | Small and medium teams | Startups | View all use cases | View all industries | View all solutions | AI | Software Development | DevOps | Security | View all topics | Customer stories | Events & webinars | Ebooks & reports | Business insights | Trust center | Partners | View all resources

Original file line numberDiff line numberDiff line change@@ -25,7 +25,7 @@ def escape(s, quote=True):

2525returns

2626272728-# see http://www.w3.org/TR/html5/syntax.html#tokenizing-character-references

28+# see https://html.spec.whatwg.org/multipage/parsing.html#numeric-character-reference-end-state

29293030_invalid_charrefs= {

31310x00: '\ufffd', # REPLACEMENT CHARACTER