[ZPT] preventing escaping of less-than and greater-thans in
tal:replace
Janko Hauser
jhauser at zscout.de
Mon Aug 14 13:43:28 EDT 2006
You are missing tal:attributes
<select tal:define="r record/name; id record/task_id">
<option tal:attributes="label r; value id" tal:content="r">dummy</
option>
</select>
With regards,
__Janko
> When doing the following:
>
> <span tal:define="r record/name; id record/task_id; mylt
> string:'<'; mygt string:'>';"
> tal:replace="string:${mylt}option label='${r}'
> value='${id}'${mygt}${r}${mylt}/option${mygt}"></span>
>
> The less-thans and greater-thans still get html escaped. How do I
> prevent this? Obviously I'm new to zope. Your answer would probably
> fit into the Zope Book because I don't see the answer there.
--
Janko Hauser email: jhauser at zscout.de
mobile: +49 1721 641552
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 155 bytes
Desc: Signierter Teil der Nachricht
Url : http://mail.zope.org/pipermail/zpt/attachments/20060814/59a865a8/PGP.bin
More information about the ZPT
mailing list