Anonymous committed 3c83fd1

[1.1.X] Fixed #6752 -- Corrected the interaction of the safe template filter with other filters. Thanks to Rupe and Alex Gaynor for their work on the patch.

Backport of r13171 from trunk.

Comments (0)

Files changed (1)


 Marks a string as not requiring further HTML escaping prior to output. When
 autoescaping is off, this filter has no effect.
+.. note::
+    If you are chaining filters, a filter applied after ``safe`` can
+    make the contents unsafe again. For example, the following code
+    prints the variable as is, unescaped:
+    .. code-block:: html+django
+        {{ var|safe|escape }}
 .. templatefilter:: safeseq