diff --git a/Attributes/NFor.php b/Attributes/NFor.php index 5401414..e78c1be 100644 --- a/Attributes/NFor.php +++ b/Attributes/NFor.php @@ -87,7 +87,7 @@ function __invoke(\DOMAttr &$attr, $contextData = []): void $html = $newDoc->asHtml(); if(!empty(trim($html))){ $fresh = new \DOMDocument(); - $fresh->loadHTML( $html, LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD); + @$fresh->loadHTML( $html, LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD); $imported = $attr->ownerDocument->importNode($fresh->documentElement, true); $attr->parentNode->parentNode->appendChild($imported); } @@ -100,4 +100,4 @@ function __invoke(\DOMAttr &$attr, $contextData = []): void } -} \ No newline at end of file +}