Browse Source

Solve bug on highlight differences.

master
Alex Puiu 2 years ago
parent
commit
4894d875a9
  1. 2
      app/SearchDisplace/Output/HtmlOutput.php

2
app/SearchDisplace/Output/HtmlOutput.php

@ -46,7 +46,7 @@ class HtmlOutput {
}
if(isset($element->paragraph)) {
$this->additions[$element->paragraph][] = strlen($html) - strlen($element->content) - strlen("</$element->tag>") - $diff;
$this->additions[$element->paragraph][] = strlen(utf8_decode($html)) - strlen(utf8_decode($element->content)) - strlen("</$element->tag>") - $diff;
}
}

Loading…
Cancel
Save