htmlizer: fix fallback
This commit is contained in:
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user