summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/lib/templatetags/templatetags/amp.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/lib/templatetags/templatetags/amp.py b/app/lib/templatetags/templatetags/amp.py
index 9c6f118..f10727f 100644
--- a/app/lib/templatetags/templatetags/amp.py
+++ b/app/lib/templatetags/templatetags/amp.py
@@ -33,7 +33,8 @@ def remove_img_tags(text):
def do_amp(text):
- bs = remove_img_tags(text)
- return Sanitizer().strip(bs)
+ bs = Sanitizer().strip(text)
+ amp = remove_img_tags(bs)
+ return amp
register.filter('amp', do_amp)