mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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:
parent
b09d915713
commit
a52f572f1e
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user