我正在尝试使用Simple HTML DOM Parser从页面中提取一些html。我可以使用以下代码拉入页面:
$html = file_get_html($url);
能够毫无问题地拉出不同的元素。我无法弄清楚的是文本是否未包含在标记中,如何捕获它。
我可以使用哪种选择器或编码来捕获p标签下方的段落?
<h3>
Business Description</h3>
<p>
<b>
One line description of business
</b>
</p>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit...