summaryrefslogtreecommitdiff
path: root/bs4/builder/_htmlparser.py
diff options
context:
space:
mode:
authorLeonard Richardson <leonardr@segfault.org>2021-05-31 15:49:41 -0400
committerLeonard Richardson <leonardr@segfault.org>2021-05-31 15:49:41 -0400
commita00624d7fc2e29b41b286f46844cb75f4d96ff63 (patch)
tree339396570eeaef7e51454dd5de9c432df29cce36 /bs4/builder/_htmlparser.py
parent8d73b97105bf6534057ee93af6795a2a0aceb993 (diff)
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]
Diffstat (limited to 'bs4/builder/_htmlparser.py')
-rw-r--r--bs4/builder/_htmlparser.py2
1 files changed, 1 insertions, 1 deletions
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.