Code

Ticket #6752: t6752.diff

File t6752.diff, 645 bytes (added by Alex, 4 years ago)

Slightly different wording.

Line 
1diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt
2index 01f4971..a08fe9c 100644
3--- a/docs/ref/templates/builtins.txt
4+++ b/docs/ref/templates/builtins.txt
5@@ -1683,6 +1683,16 @@ safe
6 Marks a string as not requiring further HTML escaping prior to output. When
7 autoescaping is off, this filter has no effect.
8 
9+.. note::
10+   
11+    If you are chaining filters something after ``safe`` can unescape the
12+    contents.  For example the following code prints the variable as is,
13+    unescaped:
14+   
15+    .. code-block:: html+django
16+       
17+        {{ var|safe|escape }}
18+
19 .. templatefilter:: safeseq
20 
21 safeseq