Debug v21

This commit is contained in:
Laurent Destailleur (aka Eldy)
2025-01-08 23:52:35 +01:00
committed by Laurent Destailleur
parent 06914d9099
commit 1f884b84ce

View File

@@ -1354,7 +1354,9 @@ function getImageFromHtmlContent($htmlContent, $imageNumber = 1)
}
// Load HTML content into object
$dom->loadHTML($htmlContent);
// We add the @ to avoid verbose warnings logsin the error.log file. For example:
// "PHP message: PHP Warning: DOMDocument::loadHTML(): Tag section invalid in Entity, line: ...", etc.
@$dom->loadHTML($htmlContent);
// Re-enable HTML load errors
libxml_clear_errors();