Re: preventing escaping of less-than and greater-thans in tal:replace
Janko Hauser <[email protected]> Mon, 14 Aug 2006 19:43:28 +0200
| Newsgroups | gmane.comp.web.zope.page-templates |
|---|---|
| Message-ID | <[email protected]> |
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--===============1667422454==
Content-Type: multipart/signed; protocol="application/pgp-signature";
micalg=pgp-sha1; boundary="Apple-Mail-58--970934074"
Content-Transfer-Encoding: 7bit
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--Apple-Mail-58--970934074
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
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: [email protected]
mobile: +49 1721 641552
--Apple-Mail-58--970934074
content-type: application/pgp-signature; x-mac-type=70674453;
name=PGP.sig
content-description: Signierter Teil der Nachricht
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit
-----BEGIN PGP SIGNATURE-----
iD8DBQFE4LZBe7bTUi4B2KARAuyUAJ48cOPOE9TysR2liJVfYMRem0cHZwCdEq/+
xqNXA52srv/MVzfis+wVuB8=
=j5Cw
-----END PGP SIGNATURE-----
--Apple-Mail-58--970934074--
--===============1667422454==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
ZPT mailing list
[email protected]
http://mail.zope.org/mailman/listinfo/zpt
--===============1667422454==--