Re: option to turn ESCAPE=HTML on by default

Alex Kapranoff <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.html-template
Organization Inner Mongolia
Message-ID <[email protected]>
Mike, default_escape can be set to 'URL' or even 'JS' (there's
Javascript escaping in recent HTML::Template too). That's even tested
in my patch. I use non-html escapings a lot myself and that's why I
did it this way.

* Mike <[email protected]> [October 18 2005, 15:05]:
> Sorry to be a pain here, but given that there is also a ESCAPE=URL option 
> (as Roger pointed out), would it be better to revert back to my original 
> suggestion of setting 'html_escape' (and now 'url_escape') to 1 (or ON) in 
> the constructor if they are to be defaults for the template file?  Exactly 
> what they are called I don't mind, but since there are 2 escaping options 
> in H::T, using 'default_escape' could be ambiguous.
> 
> Alex's patch seems to work well for the html escaping.  Perhaps include a 
> default url escaping option for completeness.
> 
> Mike.

-- 
Alex Kapranoff,
$n=["1another7Perl213Just3hacker49"=~/\d|\D*/g];
$$n[0]={grep/\d/,@$n};print"@$n{1..4}\n"


-------------------------------------------------------
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.