htmlizer: fix fallback

This commit is contained in:
Yuri Kuznetsov
2025-02-05 13:28:59 +02:00
parent 59c06302a1
commit aced5f2d5d
+2 -2
View File
@@ -929,9 +929,9 @@ class Htmlizer
$xml = new DOMDocument();
$template = "<!DOCTYPE html><meta charset=\"UTF-8\">" . $template;
$templateModified = "<!DOCTYPE html><meta charset=\"UTF-8\"><body>" . $template . "</body>";
$loadResult = $xml->loadHTML($template);
$loadResult = $xml->loadHTML($templateModified);
if ($loadResult === false) {
$this->log->warning("HTML template parsing error.");