Re: [htmltmpl] (no subject)
Brought to you by:
samtregar
From: Sam T. <sa...@tr...> - 2002-07-07 17:42:43
|
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> Try <tmpl_var name="tmpl_str" escape=HTML>. -sam |