Definitely would second Michael on not running a patched version.

There is only 1, yes only 1 circumstance in which you run a patched version.

And that in that circumstance you will know it is the right thing to do.

Kingdom Houses Management (+44) 0208 281 1572 kingdo...@gmail.com / 
i...@kingdomhouses.co.uk Kingdom Houses, 5 The Rise, Snaresbrook, London E11 
1QA 
www.kingdomhouses.co.uk 
--------------------------------------------------------------------------------
----- Original Message ----- 
From: "Michael Peters" <mpet...@plusthree.com>
To: "Tobias Nissen" <t...@movb.de>
Cc: <html-template-users@lists.sourceforge.net>
Sent: Friday, November 13, 2009 2:13 PM
Subject: Re: [htmltmpl] Escaping unicode


> On 11/13/2009 08:26 AM, Tobias Nissen wrote:
>
>> For the data to be escaped before feeding it to H::T, I'd have to add
>> a lot of code, therefore I'd like to avoid this approach. Is there any
>> way I can tell H::T to escape Unicode data I feed to it with param()?
>
> You could create a function if you were using HTML::Template::Expr or
> you could subclass HTML::Template and change param to first filter the
> unicode chars for you. Then pass it off to the base class to do the
> rest. Would be an extremely simple subclass.
>
>> If not, then the next best thing would be to create a patched version of
>> H::T for my purposes with a method like param_escape() or sth like that,
>> right?
>
> No, please don't do that. Don't run with a patched version unless
> absolutely necessary. Instead go with a subclass.
>
> -- 
> Michael Peters
> Plus Three, LP
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 
> 30-Day
> trial. Simplify your report design, integration and deployment - and focus 
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Html-template-users mailing list
> Html-template-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/html-template-users 


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Html-template-users mailing list
Html-template-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to