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


I need to compare two strings, which have HTML text. If the HTML string is equivalent, then the exam should be correct only, i.e. only the white space and the comments differ.
Is there a module that can be used for this task?

There's HTMLTidy allows you to suppress comments and normalize the formatting, so that needed.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -