Re: option to turn ESCAPE=HTML on by default

"Mike" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.html-template
Message-ID <007d01c5d3d8$25e1aa30$220f31d2@mickey>
Yes, I realise this now.  My apologies for confusing the matter.

Mike.

----- Original Message ----- 
From: "Philip Tellis" <[email protected]>
To: "HTML::Template List" <[email protected]>
Sent: Tuesday, October 18, 2005 9:27 PM
Subject: Re: [htmltmpl] option to turn ESCAPE=HTML on by default


> Sometime Today, AK cobbled together some glyphs to say:
> 
>> Mike, default_escape can be set to 'URL' or even 'JS' (there's
>> Javascript escaping in recent HTML::Template too). That's even tested
> 
> Consider this:
> 
> If I have some code in my template that needs to be html escaped, and
> other code that needs to be js escaped, and I want both to be on by
> default.
> 
> It makes sense therefore to do this:
> 
> html_escape => 1, js_escape => 1, foo_escape => 0
> 
> Of course, it's pretty hard to figure out which TMPL_VARs need to be
> escaped in each way.  It's also hard to extend this with sanity.
> 
> Philip
> 
> -- 
> The sooner our happiness together begins, the longer it will last.
>  -- Miramanee, "The Paradise Syndrome", stardate 4842.6
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Power Architecture Resource Center: Free content, downloads, discussions,
> and more. http://solutions.newsforge.com/ibmarch.tmpl
> _______________________________________________
> Html-template-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/html-template-users


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.