summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/lib/templatetags/templatetags/amp.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/lib/templatetags/templatetags/amp.py b/app/lib/templatetags/templatetags/amp.py
index f10727f..2eacfd1 100644
--- a/app/lib/templatetags/templatetags/amp.py
+++ b/app/lib/templatetags/templatetags/amp.py
@@ -19,7 +19,8 @@ register = template.Library()
def remove_img_tags(text):
- soup = BeautifulSoup(text, 'xml')
+ soup = BeautifulSoup(text, 'html')
+ print(soup)
for img in soup.find_all('img'):
r = requests.get(img['src'])
i = Image.open(BytesIO(r.content))