1. James Bennett
  2. django-template-utils


ubernostrum  committed e6c0f9a

Couple more escaping considerations

  • Participants
  • Parent commits 1991745
  • Branches default

Comments (0)

Files changed (1)

File template_utils/templatetags/generic_markup.py

View file
  • Ignore whitespace
     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
-        return smartyPants(value)
+        return mark_safe(smartyPants(value))
 register = Library()