[Twisted-web] how to pass html-formatted string to page renderer

exarkun at twistedmatrix.com exarkun at twistedmatrix.com
Thu Nov 5 07:46:44 EST 2009

On 10:26 am, eric.medina.atienza at gmail.com wrote:
>I'm trying to display text loaded from a database. This text is already
>However, when i pass this text to the page renderer, it does not 
>the html
>tags in the text. So the tags are displayed along with the text 
>How do I let the renderer know that what I'm passing is an html- 
>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.


More information about the Twisted-web mailing list