From 8c01e119e6f0a26453d3aafbad04a7de468064a4 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Thu, 18 Feb 2016 20:21:51 -0500 Subject: changed parser again --- app/lib/templatetags/templatetags/amp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/lib/templatetags/templatetags/amp.py b/app/lib/templatetags/templatetags/amp.py index ca57f2e..32fe244 100644 --- a/app/lib/templatetags/templatetags/amp.py +++ b/app/lib/templatetags/templatetags/amp.py @@ -19,7 +19,7 @@ register = template.Library() def remove_img_tags(text): - soup = BeautifulSoup(text, 'html.parser') + soup = BeautifulSoup(text, 'lxml') for img in soup.find_all('img'): r = requests.get(img['src']) i = Image.open(BytesIO(r.content)) -- cgit v1.2.3-70-g09d2