BUGFIX: Prevent DataDifferencer from creating empty <ins /> and <del /> takes that confuse the browser. (from r104675)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@112458 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-10-15 01:38:52 +00:00
parent b09d915713
commit a52f572f1e

View File

@ -686,6 +686,10 @@ class Diff
$doc = new SS_HTMLValue($content);
$content = $doc->getContent();
}
// Remove empty <ins /> and <del /> tags because browsers hate them
$content = preg_replace('/<(ins|del)[^>]*\/>/','', $content);
return $content;
}