Skip to content

Commit

Permalink
Update NFor.php
Browse files Browse the repository at this point in the history
  • Loading branch information
sroehrl authored Oct 9, 2022
1 parent 0c70e92 commit 62228b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Attributes/NFor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -100,4 +100,4 @@ function __invoke(\DOMAttr &$attr, $contextData = []): void
}


}
}

0 comments on commit 62228b3

Please sign in to comment.