diff --git a/code/Diff.php b/code/Diff.php index b7c5f9d9..708cc814 100755 --- a/code/Diff.php +++ b/code/Diff.php @@ -686,6 +686,10 @@ class Diff $doc = new SS_HTMLValue($content); $content = $doc->getContent(); } + + // Remove empty and tags because browsers hate them + $content = preg_replace('/<(ins|del)[^>]*\/>/','', $content); + return $content; }