From 1f6dd532ad59929a35714c726831cf7e454704ae Mon Sep 17 00:00:00 2001 From: Renato Akaboci Date: Tue, 14 Jan 2025 16:21:18 -0300 Subject: [PATCH] Ajustes entidades HTML - PHP 7.4.x MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adicionadas flags padrão do PHP 8.1 na chamada da função html_entity_decode, pois a mesma não converte as entidades HTML corretamente quando utilizada no PHP 7.4.x --- src/Legacy/Common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Legacy/Common.php b/src/Legacy/Common.php index caee21ec..5a029325 100644 --- a/src/Legacy/Common.php +++ b/src/Legacy/Common.php @@ -24,7 +24,7 @@ protected function getTagValue($theObj, $keyName, $extraTextBefore = '', $extraT $value = trim($vct->nodeValue); if (strpos($value, '&') !== false) { //existe um & na string, então deve ser uma entidade - $value = html_entity_decode($value); + $value = html_entity_decode($value, ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401); } return $extraTextBefore . $value . $extraTextAfter; }