Hi,

In a web project I fetch information from a database and display the
information with kid using <p>${XML(text_from_db)}</p>

The text from the db may contain XML entities such as &#62; which works
just fine.
The problem is if the text contains an entity that does not exist, for
example &#24; which causes turbogears to print a stack trace
(ExpatError: reference to invalid character number) instead of
displaying the web page.

Is there a way I can prevent TG / Kid from crashing?

Thanks,
toffe

Reply via email to