![]() |
1
3
这段代码是您所做的工作不起作用的原因: /** * Takes a string of HTML (fragment or document) and returns the content * @todo Consider making protected */ public function extractBody($html) { $matches = array(); $result = preg_match('!<body[^>]*>(.*)</body>!is', $html, $matches); if ($result) { return $matches[1]; } else { return $html; } } 您可以使用%Core.ConvertDocumentToFragment作为false关闭它;如果您的代码的其余部分是无错误的,它应该从那里直接工作。我不认为你的bodyElem定义是必要的 |
![]() |
2
2
这不是更容易做到:
|
![]() |
Jacco · 未能格式化我的日期以在php中正确工作 1 年前 |
![]() |
jay ram · 如何在URL核心php中从API获取JSON? 1 年前 |
|
Ishwarya A · php电子表格在浏览器中显示多张excel 1 年前 |