The problem is that kid 0.7.1 dosn't support xhtml entities. but the
more recent svn version does. You could try to upgrade to the svn
version of kid. Tg 0.9 will contain an updated version of kid.

On 11/21/05, Minh Luu <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I have a kid template like this <div>$myvalue</div>
> and in my controller.py, I would like to set that variable to a HTML string,
> something like
> <span style="color:red">a &amp; b</span>
>
> I found in the kid documentation and the mailling archive says that I can
> use ${XML(myvalue)} to ouput HTML, but it does seem to work with turbogears.
> When I do this
> <div>${XML(myvalue)} in turbogears, I get an exception like this
>
> ===========================
>   File
> "c:\opt\python24\lib\site-packages\kid-0.7adev_r186-py2.4.egg\kid\pull.py
> ", line 361, in feed
>     raise e
> ExpatError: undefined entity: line 1, column 41
> ===========================
>
> Any sugguestion?
>
> Thanks,
>
>
>


--
cheers
    elvelind grandin

Reply via email to