Oh, heh, html_filter() is pretty thin. ...told I might be missing something.
--- Rodney Broom ----- Original Message ----- From: "Sean McAfee" <[EMAIL PROTECTED]> To: "Rodney Broom" <[EMAIL PROTECTED]> Cc: <templates@template-toolkit.org> Sent: Friday, January 25, 2008 10:54 Subject: Re: [Templates] A bug and a suggestion OMG! > On Jan 25, 2008 9:45 AM, Rodney Broom <[EMAIL PROTECTED]> wrote: > >> From: "Tosh Cooey" <[EMAIL PROTECTED]> >> >> > "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 > _______________________________________________ templates mailing list templates@template-toolkit.org http://mail.template-toolkit.org/mailman/listinfo/templates