Oliver Nassar

Python HTMLDiff Usage Review

December 10, 2012

Next up in my review of HTMLDiff projects is a Python variant, which can be found on GitHub as cygri/htmldiff.

boom

Advantages:

Disadavantages:

 

<style type="text/css">
<!--
  span {
      color: red;
  }
-->
</style>

As you may notice, this is valid styling that ought to stay in the document, but is instead stripped out.

Endgame

I'm currently using this on my project. The stripping of the comments from the document means there's a good chance I won't use it in the end, but if that's not an issue for you, or you can control your markup to not have html comments, this library has my blessing.