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"/>

