警告: DOMDocument::loadHTML(): htmlParseEntityRef: 期望在实体中出现 ';'
2022-08-30 07:44:23
$html = file_get_contents("http://www.somesite.com/");
$dom = new DOMDocument();
$dom->loadHTML($html);
echo $dom;
抛出
Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity,
Catchable fatal error: Object of class DOMDocument could not be converted to string in test.php on line 10