[ZPT] Entities in Attributes

Dieter Maurer dieter at handshake.de
Thu Apr 22 18:26:18 EDT 2004


Tonico Strasser wrote at 2004-4-21 17:37 +0200:
>when I try the following:
>
><input value="&nbsp;">
><input value="&nbsp;" tal:attributes="value default">
>
>I get two different results. I would expect the same value.
>
>How can I insert the value of the first input dynamically into an attribute?

What Zope version are you using?

When I looked at the Zope 2.7 code, I had the impression
that entity references were handled correctly *when* they
were produced by "default".
They were escaped, however, when they came from another expression.

In a private copy, I implemented the "structure" keyword that
prevents escaping in a similar way to "tal:content".

-- 
Dieter



More information about the ZPT mailing list