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:
>> >
>> > &quot;This isn&apos;t working&quot;
>>
>> 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"'
> &quot;This isn't working&quot;
> 
> 
> --Sean
>

_______________________________________________
templates mailing list
templates@template-toolkit.org
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to