[ZPT] Re: bug. <script> tag inside page template rejected

Evan Simpson evan at 4-am.com
Mon Aug 18 15:33:40 EDT 2003


Russell Uman wrote:
> is there any way to get the zpt parser to accept/ignore this block of html??\

<script language="JavaScript" type="text/javascript"><!--
   var lt = '<';
   document.write(lt+'scr'+'ipt language="JavaScript" 
type="text/javascript">'+lt+'/scr'+'ipt>');
//--></script>

..or..

<script language="JavaScript" type="text/javascript"><!--
   document.write('##script language="JavaScript" 
type="text/javascript">alert("foo");##/script>'.replace(/##/g, '<'));
//--></script>

I have to wonder what you're doing that *really* requires generating 
JavaScript with JavaScript, though.

Cheers,

Evan @ 4-am





More information about the ZPT mailing list