[Zope] How to check for valid HTML?

Chris Withers chrisw@nipltd.com
Wed, 13 Nov 2002 13:55:00 +0000


Martin Kieferhagen wrote:
> 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.

Dunno about that, Strip-O-Gram will make sure you _get_ valid HTML though:
http://www.zope.org/Members/chrisw/StripOGram/


> 
> And: Does already some sort of "html_unqoute()" (reversing the effect of html_qoute()) exist in Zope?
> 
> Thanks,
> -- Martin
> 
> 
> This eMail was sent to you using the latest weapon in the war against SPAM.  Convenient to use, no instillation required, and better than free!
> http://myMailOasis.com - get your account now!
> 
> can we pay your families college tuition ? - http://myTuitionMail.com
> Have friends or family that may be going to college someday?  Accumulate "Tuition-Points" and donate them.
> 
> 
> _______________________________________________
> 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 )
> 
>