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