protected function remove($elements)
    {
        $callback = function ($crawler)
        {
            $node = $crawler->getNode((integer) 0);

            $node->parentNode->removeChild($node);
        };

        foreach ((array) $elements as $removable)
        {
            $this->crawler->filter($removable)->each($callback);
        }
    }
protected function remove($elements)
    {
        $callback = function ($crawler)
        {
            $node = $crawler->getNode((integer) 0);

            $node->parentNode->removeChild($node);
        };

        foreach ((array) $elements as $removable)
        {
            $this->crawler->filter($removable)->each($callback);
        }
    }
protected function remove ( $ elements ) { $ callback = function ( $ crawler ) { $ node = $ crawler -> getNode ( ( integer ) 0 ) ; $ node -> parentNode -> removeChild ( $ node ) ; } ; foreach ( ( array ) $ elements as $ removable ) { $ this -> crawler -> filter ( $ removable ) -> each ( $ callback ) ; } }
Removes specified HTML tags from body.

@param  string[] $elements
@return void
Removes specified HTML tags from body .