summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2016-02-18 10:03:54 -0500
committerluxagraf <sng@luxagraf.net>2016-02-18 10:03:54 -0500
commitd48becb449eb808f6d027ba02bc895e362cb9164 (patch)
tree2c2a1f9149597071f329298106fe8f31976d0032
parentf520b80d69a9c51478a26f7c7e98a860e4e64c3d (diff)
trying to work out a bug in amp file
-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)