[Templates] A bug and a suggestion OMG!

Mihai Bazon mishoo at dynarch.com
Fri Jan 25 18:30:22 GMT 2008


I guess someone will soon be asking why it doesn't encode "A" to
"A".  :-p

My point is, the apostrophe is _usually_ safe in HTML and I'm thankful
for the filter doesn't encode it.  If I ever want to translate it to
"'", it's too easy to write my own filter.

-M.

Tosh Cooey wrote:
> Ha ha!  I have just come across a situation where I'm being bitten by 
> the same problem.
>
> I need to filter the ' or single quote, or apostrophe.
>
> "This isn't working"
>
> Needs to come out as:
>
> "This isn't working"
>
> But how, in an elegant way that doesn't require editing HTML::Entities 
> or creating my own filter.
>
> Or maybe my TT2 is using Apache::Util?  How do I force it to use 
> HTML::Entities?
>
> I'm a bit incoherent today, sorry.
>
> Tosh
>
>   




More information about the templates mailing list