Ticket #6752: template_safe_string_note.diff

File template_safe_string_note.diff, 641 bytes (added by Joshua Russo, 14 years ago)

Added a note to the safe string filter text

  • docs/ref/templates/builtins.txt

     
    16831683Marks a string as not requiring further HTML escaping prior to output. When
    16841684autoescaping is off, this filter has no effect.
    16851685
     1686.. note::
     1687        If you are chaining filters and ``safe`` is not the last filter it will
     1688        have no effect.
     1689       
     1690        For example, in the following the ``escape`` filter makes the string no
     1691        longer ``safe``::
     1692       
     1693                {{ myVar|safe|escape }}
     1694
    16861695.. templatefilter:: safeseq
    16871696
    16881697safeseq
Back to Top