PHP:HTML Dom Parser如何删除<script>标签

I get some tag from the other site which I do parser.

Can I delete these tags somehow?

I get these texts inside the content when I do echo "if (typeof zoneManager !== 'undefined') zoneManager.insertZone({key:'blabla', name:'blabla'});"

The script tag looks like on the other site:

<script type="text/javascript">if (typeof zoneManager !== 'undefined') zoneManager.insertZone({key:'blabla', name:'blabla'}); </script>

My code:

$doc = new DOMDocument;
$doc->preserveWhiteSpace = false;

$doc->strictErrorChecking = false;
$doc->recover = true;

$doc->loadHTMLFile($tartalom);

$xpath = new DOMXPath($doc);

$h = "//div[@id='article-text']";
$c = "//h1";
$hirek = $xpath->query($h);
$cim = $xpath->query($c);

echo $hirek->item(0)->textContent;