[Zope] external method, not escaping < and >
Andreas Jung
lists at zopyx.com
Thu Dec 21 14:39:05 EST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
- --On 21. Dezember 2006 20:32:39 +0100 Mihamina Rakotomandimby
<mihamina.rakotomandimby at etu.univ-orleans.fr> wrote:
> Hi,
> I have an external method that fetches some web content (POP messages)
> then format an HTML output to make it easy to display.
> the Id of the external method is "mm". So as I said, it returns HTML
> content, with HTML tags and "<"s and ">"s.
> I directly call that external method from a ZPT this way:
> <div tal:content="python:here.mm()">
> foo
> </div>
> the problem is the ">" and "<" returned by "mm" are all transformed to
> < and >. How to avoid that?
>
Look at the 'structure' directive of ZPT *hint*
- -aj
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (Darwin)
iD8DBQFFiuLZCJIWIbr9KYwRArATAJ9fW0UckZO5GFz30JWkddYv3h8GcwCfastX
kc/+w1d6DMHK7pVgS3b08SY=
=ojz9
-----END PGP SIGNATURE-----
More information about the Zope
mailing list