[Zope] TAL's NestingError

Vital Lobachevsky tick at web.vi
Thu Apr 22 05:53:09 EDT 2004


Matt Hamilton wrote:
> 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>";

It works. But doesn't look very friendly. =)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3146 bytes
Desc: S/MIME Cryptographic Signature
Url : http://mail.zope.org/pipermail/zope/attachments/20040422/43026add/smime-0001.bin


More information about the Zope mailing list