How do I check if two html-strings are equivalent with python?

Posted by planetp on Stack Overflow See other posts from Stack Overflow or by planetp
Published on 2010-06-15T19:19:22Z Indexed on 2010/06/15 19:22 UTC
Read the original article Hit count: 144

Filed under:

I need to compare two strings, containing HTML text. The test should return true if the html strings are equivalent, i.e. differ only in whitespace and comments.
Is there any module that can be used for this task?

© Stack Overflow or respective owner

Related posts about python