We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 326e178 commit 94332b8Copy full SHA for 94332b8
tests/DomTest.php
@@ -257,4 +257,18 @@ public function testEnforceEncoding()
257
]);
258
$this->assertNotEquals('<input type="submit" tabindex="0" name="submit" value="Информации" />', $dom->find('table input', 1)->outerHtml);
259
}
260
+
261
+ public function testScriptCleanerScriptTag()
262
+ {
263
+ $dom = new Dom;
264
+ $dom->load('
265
+ <p>.....</p>
266
+ <script>
267
+ Some code ...
268
+ document.write("<script src=\'some script\'><\/script>")
269
270
+ </script>
271
+ <p>....</p>');
272
+ $this->assertEquals('....', $dom->getElementsByTag('p')[1]->innerHtml);
273
+ }
274
0 commit comments