Closed AdolphYu closed 5 months ago
content.txt
$q = QueryList::html($content); $a = $q->find('h1 span')->text();
输出为空字符串
可能是QueryList解析内容失败,可以通过 getHtml() 方法测试,打印 QueryList 解析的内容:
getHtml()
$ql = QueryList::html($html); $html = $ql->getHtml(true); echo $html;
相关文档:https://querylist.cc/docs/api/v4/getHtml
content.txt
$q = QueryList::html($content); $a = $q->find('h1 span')->text();
输出为空字符串