We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e01a43 commit 2e8d50eCopy full SHA for 2e8d50e
src/PHPHtmlParser/Dom/Parser.php
@@ -37,7 +37,7 @@ public function parse(Options $options, Content $content, int $size): AbstractNo
37
$root->setHtmlSpecialCharsDecode($options->isHtmlSpecialCharsDecode());
38
$activeNode = $root;
39
while ($activeNode !== null) {
40
- if ($activeNode && $activeNode->tag->name() === 'script'
+ if ($activeNode && $activeNode->getTag()->name() === 'script'
41
&& $options->isCleanupInput() !== true
42
) {
43
$str = $content->copyUntil('</');
0 commit comments