src/Readability.php
private function removeScripts(DOMDocument $dom)
    {
        foreach (['script', 'noscript'] as $tag) {
            $nodes = $dom->getElementsByTagName($tag);
            foreach (iterator_to_array($nodes) as $node) {
                NodeUtility::removeNode($node);
            }
        }
    }
private function removeScripts(DOMDocument $dom)
    {
        foreach (['script', 'noscript'] as $tag) {
            $nodes = $dom->getElementsByTagName($tag);
            foreach (iterator_to_array($nodes) as $node) {
                NodeUtility::removeNode($node);
            }
        }
    }
private function removeScripts ( DOMDocument $ dom ) { foreach ( [ 'script' , 'noscript' ] as $ tag ) { $ nodes = $ dom -> getElementsByTagName ( $ tag ) ; foreach ( iterator_to_array ( $ nodes ) as $ node ) { NodeUtility :: removeNode ( $ node ) ; } } }
Removes all the scripts of the html.

@param DOMDocument $dom
Removes all the scripts of the html .