diff options
-rw-r--r-- | app/lib/templatetags/templatetags/amp.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/lib/templatetags/templatetags/amp.py b/app/lib/templatetags/templatetags/amp.py index 32fe244..b20c9a9 100644 --- a/app/lib/templatetags/templatetags/amp.py +++ b/app/lib/templatetags/templatetags/amp.py @@ -29,6 +29,7 @@ def remove_img_tags(text): except: new_tag = soup.new_tag("amp-img", alt=img["alt"], width=width, height=height, src=img['src']) img.replace_with(new_tag) + soup = soup.body.next return soup.prettify() |