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!
In reply to auto HTML escaping in Template::Toolkit by pc88mxer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |