Skip to content

Commit 88f817a

Browse files
authored
php 8.2 (#125)
1 parent b0746c6 commit 88f817a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/Caxy/HtmlDiff/Table/TableDiff.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -627,11 +627,7 @@ protected function buildTableDoms()
627627
protected function createDocumentWithHtml($text)
628628
{
629629
$dom = new \DOMDocument();
630-
$dom->loadHTML(mb_convert_encoding(
631-
$this->purifyHtml(mb_convert_encoding($text, $this->config->getEncoding(), mb_detect_encoding($text))),
632-
'HTML-ENTITIES',
633-
$this->config->getEncoding()
634-
));
630+
$dom->loadHTML(htmlspecialchars_decode(iconv('UTF-8', 'ISO-8859-1', htmlentities($text, ENT_COMPAT, 'UTF-8')), ENT_QUOTES));
635631

636632
return $dom;
637633
}

0 commit comments

Comments
 (0)