On Fri, 28 Jun 2002, Glenn Morgan wrote:

> I am using HTML::Template with PageKit and having a problem with
> <tmpl_var> substitutions in javascript quoted strings. See below:
> 
> <button onclick="javascript: js_str='<tmpl_var
> name="tmpl_str">;"></button>
> 
> If tmpl_str="It's a wonderful life"
> 
> Then my resultant html is
> 
> <button onclick="javascript: js_str='It's a wonderful life'";></button>

Interesting.  Looks like an escape=quotemeta may be in order here.  
This seems like something others might encounter at some point, so maybe 
it should be added to HTML::Template.

Philip



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Caffeinated soap. No kidding.
http://thinkgeek.com/sf
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to