Commits

Anonymous committed e6c0f9a

Couple more escaping considerations

  • Participants
  • Parent commits 1991745

Comments (0)

Files changed (1)

File template_utils/templatetags/generic_markup.py

     """
     if arg is not None:
         return mark_safe(formatter(value, filter_name=arg))
-    return formatter(value)
+    return mark_safe(formatter(value))
 apply_markup.is_safe = True
 
 def smartypants(value):
             raise template.TemplateSyntaxError("Error in smartypants filter: the Python smartypants module is not installed or could not be imported")
         return value
     else:
-        return smartyPants(value)
+        return mark_safe(smartyPants(value))
 
 register = Library()
 register.filter(apply_markup)