Re: how to pass html-formatted string to page renderer

[email protected]
Newsgroups gmane.comp.python.twisted.web
Message-ID <20091105124644.3229.1070360990.divmod.xquotient.130@localhost.localdomain>
On 10:26 am, [email protected] wrote:
>Hi,
>
>I'm trying to display text loaded from a database. This text is already
>html-formatted.
>However, when i pass this text to the page renderer, it does not 
>recognize
>the html
>tags in the text. So the tags are displayed along with the text 
>content.
>
>How do I let the renderer know that what I'm passing is an html- 
>formatted
>string
>so that the renderer will use the tags in the string.

I'll guess that you're using Nevow and returning such a string from a 
render method.  If that's not what's going on, please clarify.

You can use nevow.tags.xml to wrap an already-marked-up string so that 
further processing is not done to it.

Jean-Paul
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.