src/Lib/Document/CallTreeToHTML.php
function getHTML($node, $html_decode = true)
    {
        $dom = $this->getDom($node);
        $dom->encoding = 'utf-8';
        $html = $dom->saveHTML($dom->firstChild);
        if ($html_decode) {
            $html = html_entity_decode($html);
        }

        return $html;
    }
function getHTML($node, $html_decode = true)
    {
        $dom = $this->getDom($node);
        $dom->encoding = 'utf-8';
        $html = $dom->saveHTML($dom->firstChild);
        if ($html_decode) {
            $html = html_entity_decode($html);
        }

        return $html;
    }
DOM转HTML

@param $node
@param bool $html_decode
@return string