Code

Ticket #6752: template_safe_string_note.diff

File template_safe_string_note.diff, 641 bytes (added by Rupe, 4 years ago)

Added a note to the safe string filter text

Line 
1Index: docs/ref/templates/builtins.txt
2===================================================================
3--- docs/ref/templates/builtins.txt     (revision 13103)
4+++ docs/ref/templates/builtins.txt     (working copy)
5@@ -1683,6 +1683,15 @@
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+       If you are chaining filters and ``safe`` is not the last filter it will
11+       have no effect.
12+       
13+       For example, in the following the ``escape`` filter makes the string no
14+       longer ``safe``::
15+       
16+               {{ myVar|safe|escape }}
17+
18 .. templatefilter:: safeseq
19 
20 safeseq