13 Nov
2002
13 Nov
'02
3:46 p.m.
From: "Martin Kieferhagen" <martinkieferhagen@mymailoasis.com> Subject: How to check for valid HTML?
Hi,
Is there a way to check (in a Python script) if a given string is valid HTML code? Ideally, it should return some useful error message (e.g. what you get from the TTW) if the code is not valid HTML.
And: Does already some sort of "html_unqoute()" (reversing the effect of html_qoute()) exist in Zope?
Thanks, -- Martin
Marc-Andre Lemburg, of mxODBC and mxDateTime renown, has a nice Python wrapper for Html Tidy at http://www.egenix.com/files/python/mxTidy.html It will report errors and even make an effort to fix them. -- Wade Leftwich Ithaca, NY