On 6/20/06, Jay Parlar <[EMAIL PROTECTED]> wrote: > Well, as it stands right now, I only need this to make sure that text > entered into the Admin is ok, and that's all by trusted users, so > Beautiful Soup might do it.
Python wrappers for Tidy: http://utidylib.berlios.de/ >From the homepage: === >>> import tidy >>> options = dict(output_xhtml=1, ... add_xml_decl=1, ... indent=1, ... tidy_mark=0) >>> print tidy.parseString('<Html>Hello Tidy!', **options) <?xml version="1.0" encoding="us-ascii"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> </head> <body> Hello Tidy! </body> </html> == Heheh. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---