I'm wondering what is the best way to do a Diff on two HTML codes? I prefer to get the output as Python object and not as a HTML report or something like this.
You can use difflib library available as a part of python standard library. Refer it at https://docs.python.org/2/library/difflib.html
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.