summaryrefslogtreecommitdiff
path: root/app/lib
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2016-02-18 20:19:35 -0500
committerluxagraf <sng@luxagraf.net>2016-02-18 20:19:35 -0500
commit1cd862ecc565d555e94dc525410cfa2bf39eed54 (patch)
treee769264a91aaad4ab6853abc693bc9a826e9eca1 /app/lib
parent9f3dae0d59f29266b23d8f65bdaf3aef4a0c2e1d (diff)
finalized amp version of luxagraf
Diffstat (limited to 'app/lib')
-rw-r--r--app/lib/templatetags/templatetags/amp.py3
1 files changed, 1 insertions, 2 deletions
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))