Skip to content

Commit

Permalink
HTML output fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Oksydan committed Apr 3, 2023
1 parent 034cf12 commit 3393124
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Hook/HtmlOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function hookActionOutputHTMLBefore(array $params) : void
$preConfig = libxml_use_internal_errors(true);
$html = $params['html'];
$doc = new \DOMDocument();
$doc->loadHTML('<meta http-equiv="Content-Type" content="charset=utf-8">' . $html, LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD);
$doc->loadHTML('<meta http-equiv="Content-Type" content="charset=utf-8">' . $html);
$links = $doc->getElementsByTagName('link');

foreach ($links as $link) {
Expand Down

0 comments on commit 3393124

Please sign in to comment.