[Zope] TAL and quotes

Dieter Maurer dieter at handshake.de
Sun Mar 14 15:23:20 EST 2004


Andrew Veitch wrote at 2004-3-12 23:10 +0000:
><input tal:attributes="value here/mystring" />
>
>mystring may contain a quote that needs to be escaped to &quot;
>
>It's not automatically escaped by the TAL engine, unfortunately if I write
>code to escape it myself then I end up with &amp;quot; because although TAL
>fails to escape " it does escape &!

I cannot reproduce your problem in my Zope 2.7.0.

Especially, I tried '<a href="abc" tal:attributes="title python:'\x22'">abc</a>'
and correctly got '<a href="abc" title="&quot;">abc</a>'

-- 
Dieter



More information about the Zope mailing list