Thank you very much for the tip.  It works beautifully.
I think this would be useful in the FAQ!

----- Original Message ----- From: "MaxP" <[EMAIL PROTECTED]>
To: "TurboGears" <[email protected]>
Sent: Tuesday, November 22, 2005 6:38 AM
Subject: [TurboGears] Re: How to include raw HTML in kid variable



A temporary solution  :

You can also disable output encoding in kid for some html tags .

from kid import serialization
serialization.HTMLSerializer.noescape_elements.add('div')

Then in your template you dont need to use XML() .
<div  py:content="test"/>

It would be nice to have something like disable-output-encoding in xsl
(disabling output encoding localy and not for all html tags you define)
:

<div  py:content="test" disable-output-encoding="yes"/>


Reply via email to