Re: How to check for valid HTML?
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
look at the urllib module for unquote kind of functionality hth AM Wade Leftwich wrote:
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
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
-- ================================================================== Aseem Mohanty Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231 ================================================================== "I saw `cout' being shifted "Hello world" times to the left and stopped right there!!" -- Steve Gonedes ==================================================================
participants (2)
-
AM -
Wade Leftwich