I was looking for the feature some time ago after I saw that in Django
templates. The Template::HTML should do the thing:
use Template::HTML;
Template::HTML->new->process(\'[% tag %]', { tag => 'A <= B && B <= C'});
emits
A <= B && B <= C
there is filter "none" that can disable it.
-- Roman
Dne 23.12.2009 22:45, Ask Bjørn Hansen napsal(a):
> Anyone tried getting any [% %] block to HTML escape by default
> (unless some flag / filter is set to _not_ filter)?
>
> It's much more obvious (and less costly) when you make the mistake of
> double-escaping than missing an escape, so it'd be nice to have the
> default reversed.
>
>
> - ask
>
_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates