src/ToMarkupVisitor.php
/**
     * Convert a node to a markup string.
     * @param Node $node
     * @return string markup string
     */
Convert a node to a markup string.
@param Node $node
@return string markup string
Convert a node to a markup string . @param Node $node @return string markup string
public static function toMarkup(Node $node): string
    {
        $visitor = new self();
        return $visitor->visit($node);
    }
public static function toMarkup ( Node $ node ) : string { $ visitor = new self ( ) ; return $ visitor -> visit ( $ node ) ; }
Convert a node to a markup string.
Convert a node to a markup string .