[Templates] A bug and a suggestion OMG!
Sean McAfee
eefacm at gmail.com
Fri Jan 25 17:54:19 GMT 2008
On Jan 25, 2008 9:45 AM, Rodney Broom <rbroom+tt2 at rbroom.com> wrote:
> From: "Tosh Cooey" <tosh at 1200group.com>
>
> > "This isn't working"
> >
> > Needs to come out as:
> >
> > "This isn't working"
>
> Unless I'm missing something:
>
> [% var_to_escape | html %]
>
The point is that the html filter doesn't do apostrophes. Example:
$ perl -MTemplate -le 'Template->new->process(\"[% x | html %]", { x =>
shift })' '"This isn'\''t working"'
"This isn't working"
--Sean
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.template-toolkit.org/pipermail/templates/attachments/20080125/1a9cf8e1/attachment.htm
More information about the templates
mailing list