rashid2538 / php-htmldiff

A library for comparing two HTML files/snippets and highlighting the differences using simple HTML.
GNU General Public License v2.0
69 stars 48 forks source link

Letters disappear, ins tag not closed #6

Open karabijavad opened 11 years ago

karabijavad commented 11 years ago
$a = new HtmlDiff('<p>1.1', 'test');
echo $a->build();

outputs:

<ins class='mod'><del class="diffmod">.1</del><ins class="diffmod">test</ins>

<p>1 is not shown as being removed, and the opening <ins class='mod'> tag is not closed.