[ZPT] structure in tal:attributes?

Ron Bickers rbickers-dated-1007503229.9ad39d@logicetc.com
Tue, 27 Nov 2001 17:00:29 -0500


> -----Original Message-----
> From: zpt-admin@zope.org [mailto:zpt-admin@zope.org]On Behalf Of Evan
> Simpson

> > I think I'm missing something.  I am trying to do the following:
> > <a href="#" tal:attributes="href
> > string:invokeFactory?type_name=$Type&id=$unique_id">click here</a>
>
> >
> > but TALParser turns it into valid xml $Type&amp;id=$unique_id
> which is not
> > something I want.
>
>
> You must escape ampersands in attributes.  Believe it or not, that's
> actually part of the HTML standard, and browsers like it, even in hrefs.

I'm running into this same problem, except that I need to do the following:

<a tal:attributes='href
string:javascript:NewWindow("http://domain/${here/mypath}")'>

Browsers definitely don't like
javascript:NewWindow(&quot;http://domain/coolpath/&quot;)

What can I do to get real quotes?
_______________________

Ron Bickers
Logic Etc, Inc.