Closed
Description
I have html with code:
<script>
p.append(" są ");
</script>
I read my html, add div and print output ($content is html get by ob_get_clean() and it good because i tested it in my other function):
$document = new HTMLDocument($content);
$h1 = $document->querySelector("#pageTitle");
$div = $document->createElement("div");
$div->innerHTML = "lorem";
$h1->after($div);
$html = $document->documentElement;
I got:
<script>
p.append(" są ");
</script>
Metadata
Metadata
Assignees
Labels
No labels