From 0d9442d1d1c173393dae361d99d4c0e10e2be8cb Mon Sep 17 00:00:00 2001 From: Erik Stein Date: Sat, 5 May 2018 17:58:16 +0200 Subject: [PATCH] BeautifulSoup API. --- shared/utils/text.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/utils/text.py b/shared/utils/text.py index 7979bc9..3c6314c 100644 --- a/shared/utils/text.py +++ b/shared/utils/text.py @@ -43,7 +43,7 @@ if six.PY2: def html_entities_to_unicode(html): # An incoming HTML or XML entity is always converted into the corresponding Unicode character in bs4 - return smart_text(bs4.BeautifulStoneSoup(html)) + return smart_text(bs4.BeautifulSoup(html), 'lxml') else: # Works only with Python >= 3.4