summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2016-02-18 20:21:51 -0500
committerluxagraf <sng@luxagraf.net>2016-02-18 20:21:51 -0500
commit8c01e119e6f0a26453d3aafbad04a7de468064a4 (patch)
tree0fee8fde2695bef1761641ee13457cfe2aef585c /app
parent1cd862ecc565d555e94dc525410cfa2bf39eed54 (diff)
changed parser again
Diffstat (limited to 'app')
-rw-r--r--app/lib/templatetags/templatetags/amp.py2
1 files changed, 1 insertions, 1 deletions
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))