From 34d5d896f0ab08a2f939eb7aabc9d9a369c2d685 Mon Sep 17 00:00:00 2001 From: bluegeek9 <5614-bluegeek9@users.noreply.drupalcode.org> Date: Mon, 22 Apr 2024 12:22:25 -0500 Subject: [PATCH] php 8.2 --- lib/Caxy/HtmlDiff/Table/TableDiff.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/Caxy/HtmlDiff/Table/TableDiff.php b/lib/Caxy/HtmlDiff/Table/TableDiff.php index 3f3e940..34d51d4 100644 --- a/lib/Caxy/HtmlDiff/Table/TableDiff.php +++ b/lib/Caxy/HtmlDiff/Table/TableDiff.php @@ -627,11 +627,7 @@ protected function buildTableDoms() protected function createDocumentWithHtml($text) { $dom = new \DOMDocument(); - $dom->loadHTML(mb_convert_encoding( - $this->purifyHtml(mb_convert_encoding($text, $this->config->getEncoding(), mb_detect_encoding($text))), - 'HTML-ENTITIES', - $this->config->getEncoding() - )); + $dom->loadHTML(htmlspecialchars_decode(iconv('UTF-8', 'ISO-8859-1', htmlentities($text, ENT_COMPAT, 'UTF-8')), ENT_QUOTES)); return $dom; }