Hi all, on the recommendation of someone on the list I've been using
Beautiful soup with some success to sanitize bad input html for a cms.
However, I don't see an easy solution in there for converting special
characters that aren't part of tags. Anyone have recommendations on how
they handle that? I need to make sure that bad html that possibly
contains & < > can get through ok. Not sure if it is just safe to string
replace those with their xml entities, and if so, how I would make sure
with beautiful soup that the < > are not meant to be valid.

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