iain duncan <[EMAIL PROTECTED]> writes:
> 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! )
There's something to do that. I don't remember exactly which package has
it... I'd start trying with cgi and urllib and then follow on to elementtree
itself.
Ops! There's a cgi.escape:
escape(s, quote=None)
Replace special characters "&", "<" and ">" to HTML-safe sequences.
If the optional flag quote is true, the quotation mark character (")
is also translated.
Be seeing you,
--
Jorge Godoy <[EMAIL PROTECTED]>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---