[Zope] prevent quoting in tal:attributes

Chris Withers chrisw at nipltd.com
Mon Sep 15 09:22:07 EDT 2003


Dieter Maurer wrote:
> Milos Prudek wrote at 2003-9-12 19:19 +0200:
>  > How can I prevent quote escaping in tal:attributes?
> I fear, you cannot.
> This is a TAL weakness.
> 
>  > My attribute contains many quotes itself,
>  > and ZPT automatically escapes them.
> 
> This is not a problem, as quoted quotes are equivalent to unquoted
> ones.
> 
> TAL poses a problem when the attribute contains character or
> entity references (such as Ä). "tal:attributes" quotes
> them as "Ä" which is not the same as "Ä".

Does structure not work here?

<x tal:attributes="structure name string:&Auml;"/>

cheers,

Chris




More information about the Zope mailing list