[ZPT] structure in tal:attributes?
Evan Simpson
evan@zope.com
Tue, 20 Nov 2001 14:30:54 -0500
alan runyan wrote:
> 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&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.
Cheers,
Evan @ Zope