Jonathan Bowlas wrote:
Hi All,

I have a string that contains a <a
href="http://www.mywebaddress.com";>link</a> tag that I would like rendered
as HTML when output but it only seems to render in the html page like this
&lt;a href="http://www.mywebaddress.com"&gt;link&lt;/a&gt;

To replace the characters, I tried this in my TAL:

<tal:block tal:define="d_stand row/STANDFIRST | nothing;
d_stand_replaced_chars python: (str(d_stand)).replace('&gt;','>');">

<p tal:condition="d_stand_replaced_chars"
tal:content="d_stand_replaced_chars" />
</tal:block>

But it converted the '&gt;' I replaced with a '>' back to a '&gt;' upon
rendering the string in a html page.

Any ideas how I can achieve this?

tal:content="structure d_stand_replaced_chars"

--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

Phone:  +45 66 11 84 94
Mobile: +45 29 93 42 96

_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to