From 4894d875a9a619e3ef575918d14136ca5150ca32 Mon Sep 17 00:00:00 2001 From: Alex Puiu Date: Fri, 4 Mar 2022 11:54:22 +0200 Subject: [PATCH] Solve bug on highlight differences. --- app/SearchDisplace/Output/HtmlOutput.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/SearchDisplace/Output/HtmlOutput.php b/app/SearchDisplace/Output/HtmlOutput.php index 6e08c04..c25b4f2 100644 --- a/app/SearchDisplace/Output/HtmlOutput.php +++ b/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("tag>") - $diff; + $this->additions[$element->paragraph][] = strlen(utf8_decode($html)) - strlen(utf8_decode($element->content)) - strlen("tag>") - $diff; } }