pc88mxer has asked for the wisdom of the Perl Monks concerning the following question:
I've got a project that has a gazillion TT templates which produce HTML, and not a single one of them properly HTML escapes insertions of data. I don't think using FILTER_GET won't work because there's code like:
so we need access to the raw data. Is there a way I can tell TT to automatically HTML escape insertion of variables and simple expressions? There might be a few places where I don't want it happen, so it would also be nice to be able to turn it off in those few spots.[% IF name.length > 10 ... %] ...
Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: auto HTML escaping in Template::Toolkit
by pc88mxer (Vicar) on Nov 14, 2007 at 16:04 UTC |