Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@13171 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit ced4dd2aad6b0203dbf1f477f46e347f918982af 1 parent f9b75db
Russell Keith-Magee authored May 09, 2010

Showing 1 changed file with 10 additions and 0 deletions. Show diff stats Hide diff stats

  1. 10  docs/ref/templates/builtins.txt
10  docs/ref/templates/builtins.txt
@@ -1683,6 +1683,16 @@ safe
1683 1683
 Marks a string as not requiring further HTML escaping prior to output. When
1684 1684
 autoescaping is off, this filter has no effect.
1685 1685
 
  1686
+.. note::
  1687
+
  1688
+    If you are chaining filters, a filter applied after ``safe`` can
  1689
+    make the contents unsafe again. For example, the following code
  1690
+    prints the variable as is, unescaped:
  1691
+
  1692
+    .. code-block:: html+django
  1693
+
  1694
+        {{ var|safe|escape }}
  1695
+
1686 1696
 .. templatefilter:: safeseq
1687 1697
 
1688 1698
 safeseq

0 notes on commit ced4dd2

Please sign in to comment.
Something went wrong with that request. Please try again.