Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

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: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit ced4dd2aad6b0203dbf1f477f46e347f918982af 1 parent f9b75db
@freakboy3742 freakboy3742 authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 docs/ref/templates/builtins.txt
10 docs/ref/templates/builtins.txt
@@ -1683,6 +1683,16 @@ safe
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

0 comments on commit ced4dd2

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