N°7571 - fix warning due to the new version of Html2Text lib

This commit is contained in:
Eric Espie
2024-06-19 11:23:08 +02:00
parent 51adfd0254
commit 7028fd21bc

View File

@@ -2068,7 +2068,7 @@ SQL;
{
try {
//return '<?xml encoding="UTF-8">'.$sHtml;
return Html2Text::convert('<?xml encoding="UTF-8">'.$sHtml);
return Html2Text::convert('<?xml encoding="UTF-8">'.$sHtml, ['ignore_errors' => true]);
}
catch (Exception $e) {
return $e->getMessage();