On Thu, 2007-08-03 at 20:18 -0300, Jorge Godoy wrote:
> iain duncan <[EMAIL PROTECTED]> writes:
> 
> > Problem is that now we are choking on the ampersand character. What is
> > the recommended way of handling special characters in input that is
> > destined to be included through something like:
> >
> > ${XML(rendered_widget)}
> 
> Escape them.  '&' becomes '&amp;', so you might end up with '&amp;amp;' to
> generate an '&amp;' output. 

Do you do that manually or is there a tg standard way of escaping
special chars? ( I had been under the impression that the XML() function
did just that, but I guess I'm wrong! )

Thanks
Iain



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to