From a00624d7fc2e29b41b286f46844cb75f4d96ff63 Mon Sep 17 00:00:00 2001 From: Leonard Richardson Date: Mon, 31 May 2021 15:49:41 -0400 Subject: The html.parser tree builder can now handles named entities found in the HTML5 spec in much the same way that the html5lib tree builder does. Note that the lxml tree builder still handles named entities differently. [bug=1924908] --- bs4/builder/_htmlparser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bs4/builder/_htmlparser.py') diff --git a/bs4/builder/_htmlparser.py b/bs4/builder/_htmlparser.py index 2f2bf1e..355be11 100644 --- a/bs4/builder/_htmlparser.py +++ b/bs4/builder/_htmlparser.py @@ -231,7 +231,7 @@ class BeautifulSoupHTMLParser(HTMLParser): def handle_entityref(self, name): """Handle a named entity reference by converting it to the - corresponding Unicode character and treating it as textual + corresponding Unicode character(s) and treating it as textual data. :param name: Name of the entity reference. -- cgit v1.2.3