diff --git a/.gitignore b/.gitignore index 183037e..318cfe6 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ vendor/ /demo/bower_components /demo/node_modules .DS_Store -.idea \ No newline at end of file +.idea +.phpunit.result.cache \ No newline at end of file diff --git a/lib/Caxy/HtmlDiff/Table/TableDiff.php b/lib/Caxy/HtmlDiff/Table/TableDiff.php index ed46d94..58b7057 100644 --- a/lib/Caxy/HtmlDiff/Table/TableDiff.php +++ b/lib/Caxy/HtmlDiff/Table/TableDiff.php @@ -590,8 +590,8 @@ protected function diffCells($oldCell, $newCell, $usingExtraRow = false) $newContent = $newCell ? $this->getInnerHtml($newCell->getDomNode()) : ''; $htmlDiff = HtmlDiff::create( - mb_convert_encoding($oldContent, 'UTF-8', 'HTML-ENTITIES'), - mb_convert_encoding($newContent, 'UTF-8', 'HTML-ENTITIES'), + html_entity_decode($oldContent, ENT_QUOTES | ENT_HTML5, 'UTF-8'), + html_entity_decode($newContent, ENT_QUOTES | ENT_HTML5, 'UTF-8'), $this->config ); $diff = $htmlDiff->build();