[Zope] TAL's NestingError

Matt Hamilton matth at netsight.co.uk
Thu Apr 22 05:24:24 EDT 2004


Vital Lobachevsky wrote:

> Hi, all!
> 
> How to get this working with ZPT?
> 
> <!-- Page Template Diagnostics
>  Compilation failed
>  TAL.HTMLTALParser.NestingError: Open tags <html>, <body>, <script> do 
> not match close tag </a>, at line 7, column 26
> -->
> <html>
> <head>
> </head>
> 
> <body>
> <script language="javascript">
> var str = "<a href=''>xxx</a>";
> </script>
> 
> </body>
> </html>
> 
> Of cause, I can put &lt; and &gt;, but I need proper html in this string.

Vital,
   Try:

var str = "<" + "a href=''>xxx<" +"/a>";

-Matt


-- 
Matt Hamilton                                       matth at netsight.co.uk
Netsight Internet Solutions, Ltd.        Business Vision on the Internet
http://www.netsight.co.uk                             +44 (0)117 9090901
Web Design | Zope/Plone Development & Consulting | Co-location | Hosting



More information about the Zope mailing list