Author: russellm
Date: 2010-05-09 01:51:07 -0500 (Sun, 09 May 2010)
New Revision: 13177

Modified:
   django/branches/releases/1.1.X/docs/ref/templates/builtins.txt
Log:
[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.

Modified: django/branches/releases/1.1.X/docs/ref/templates/builtins.txt
===================================================================
--- django/branches/releases/1.1.X/docs/ref/templates/builtins.txt      
2010-05-09 06:50:39 UTC (rev 13176)
+++ django/branches/releases/1.1.X/docs/ref/templates/builtins.txt      
2010-05-09 06:51:07 UTC (rev 13177)
@@ -1477,6 +1477,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