我需要带有库 PHP Simple DOM 解析器的 innerHTML


I need innerHTML with the library PHP Simple DOM Parser

我一直在研究PHP Simple DOM解析器,我现在面临的问题是我无法使用库获取内部HTML。需要帮助
图书馆链接:
http://simplehtmldom.sourceforge.net/
如果您使用过这个库,您可以帮助我找到这个库支持/生成内部 HTML ?

我找到了尝试其功能的解决方案。
你可以通过使用innertext()或outertext()函数
来获取html

$html = str_get_html('<div id="hello">Hello</div><div id="world">World</div>');
$html->innertext;