Is there a ruby gem that does diff between HTML documents?
10:30 01 Feb 2012

Doing a diff of two different html documents turns out to be an entirely different problem than simply doing a diff of plain text. For example, if I do a naive LCS diff between:

Google

and

Google


the diff result is NOT:


but

/a>

I've tried most gems out there that claim to be html diff but all of them seem to be just implementing text based LCS diff. Is there any gem that does a diff while taking html tags into account?

ruby version-control rubygems merge diff