Changes between Version 2 and Version 3 of AutoEscape alternative


Ignore:
Timestamp:
Oct 5, 2006, 8:39:10 PM (18 years ago)
Author:
Chris Beaven
Comment:

few clarifications

Legend:

Unmodified
Added
Removed
Modified
  • AutoEscape alternative

    v2 v3  
    1616If a tag has already been "finalized" in the view (ie. it doesn't need the filters added to it), a specific new filter `|finalized` can be added to that variable tag.
    1717
    18 If a tag explictly already uses the filter, it will not be added again.
     18To avoid unwanted double escaping, if a tag explictly already uses a filter declared in `finalfilter`, it will not be added again.
    1919
    2020== Not too magic ==
    2121
    22 There is no magical code hidden underneath to worry about. All that's happening is one or more common filters are being applied automatically to every variable tag defined within the `finalfilter` block.
     22There is no magical code hidden underneath deciding on what should be escaped. All that's happening is one or more common filters are being applied automatically to every variable tag defined within the `finalfilter` block.
    2323
    2424== Not too implicit ==
    2525
    26 The template author has to use it explicitly. It ''does'' work across `{% extend %}`ed pages however, but some amount of implicitness is required for this to be a useful tag.
     26The template author has to use `finalfilter` explicitly. It ''does'' work across `{% extend %}`ed pages however, but some amount of implicitness is required for this to be a useful tag.
    2727
    2828== Not just HTML escaping ==
Back to Top