private function recursiveCallChild(\DOMNodeList $nodeList, callable $fct)
    {
        /**
         * @var \DOMNode $domNode
         */
        foreach ($nodeList as $domNode) {
            $fct(new GlHtmlNode($domNode));
            if ($domNode->hasChildNodes()) {
                $this->recursiveCallChild($domNode->childNodes, $fct);
            }
        }
    }
private function recursiveCallChild(\DOMNodeList $nodeList, callable $fct)
    {
        /**
         * @var \DOMNode $domNode
         */
        foreach ($nodeList as $domNode) {
            $fct(new GlHtmlNode($domNode));
            if ($domNode->hasChildNodes()) {
                $this->recursiveCallChild($domNode->childNodes, $fct);
            }
        }
    }
private function recursiveCallChild ( \ DOMNodeList $ nodeList , callable $ fct ) { /**
         * @var \DOMNode $domNode
         */ foreach ( $ nodeList as $ domNode ) { $ fct ( new GlHtmlNode ( $ domNode ) ) ; if ( $ domNode -> hasChildNodes ( ) ) { $ this -> recursiveCallChild ( $ domNode -> childNodes , $ fct ) ; } } }
extract h tag from html

@param \DOMNodeList $nodeList
@param callable     $fct
extract h tag from html