Author: russellm
Date: 2010-05-09 01:45:21 -0500 (Sun, 09 May 2010)
New Revision: 13171

Modified:
   django/trunk/docs/ref/templates/builtins.txt
Log:
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.

Modified: django/trunk/docs/ref/templates/builtins.txt
===================================================================
--- django/trunk/docs/ref/templates/builtins.txt        2010-05-09 06:44:52 UTC 
(rev 13170)
+++ django/trunk/docs/ref/templates/builtins.txt        2010-05-09 06:45:21 UTC 
(rev 13171)
@@ -1683,6 +1683,16 @@
 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
 
 safeseq

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to