Re: option to turn ESCAPE=HTML on by default

Philip Tellis <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.html-template
Message-ID <[email protected]>
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
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.