【发布时间】:2011-01-19 11:18:30
【问题描述】:
可能重复:
Best methods to parse HTML
How to get href from anchor tag with particular class
大家好,
我需要一个 html 解析器。 Baiscally 在字符串中给出一个 html,我需要提取每个 href
你建议我使用哪个 php 的 html 解析器?也有人处理错误的 html。
谢谢
【问题讨论】:
-
在发布新问题之前,请搜索现有问题/答案 - 该主题已详细介绍过。
标签: php html parsing html-parsing