Kaydet (Commit) ced4dd2a authored tarafından Russell Keith-Magee's avatar Russell Keith-Magee

Fixed #6752 -- Corrected the interaction of the safe template filter with other…

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
üst f9b75db9
......@@ -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
safeseq
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment