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
Post a Comment