caxy / php-htmldiff

A library for comparing two HTML files/snippets and highlighting the differences using simple HTML. Includes support for comparing complex lists and tables
http://php-htmldiff.caxy.com
GNU General Public License v2.0
202 stars 51 forks source link

Detect link changes to resolve #28 #30

Closed jschroed91 closed 8 years ago

jschroed91 commented 8 years ago

Feature request from #28.

I didn't go as far as adding the functionality for displaying a tooltip of the change, as that is out of the scope of this library and could be done with some post-processing / JS.

Example:

Old Text: <a href="http://caxy.com">Test</a>

New Text: <a href="http://google.com">Test</a>

Output:

<del class="diffmod diff-href"><a href="http://caxy.com">Test</a></del><ins class="diffmod diff-href"><a href="http://google.com">Test</a></ins>