Html2Text\Html2Text::nextChildName PHP Method

nextChildName() static public method

static public nextChildName ( $node )
    static function nextChildName($node)
    {
        // get the next child
        $nextNode = $node->nextSibling;
        while ($nextNode != null) {
            if ($nextNode instanceof \DOMElement) {
                break;
            }
            $nextNode = $nextNode->nextSibling;
        }
        $nextName = null;
        if ($nextNode instanceof \DOMElement && $nextNode != null) {
            $nextName = strtolower($nextNode->nodeName);
        }
        return $nextName;
    }