Skip to content

Commit

Permalink
Ajustes entidades HTML - PHP 7.4.x
Browse files Browse the repository at this point in the history
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
  • Loading branch information
renatoakaboci authored Jan 14, 2025
1 parent fd37946 commit 1f6dd53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Legacy/Common.php
Original file line number Diff line number Diff line change
@@ -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;
}

0 comments on commit 1f6dd53

Please sign in to comment.