skylarkelty/purity5
Composer 安装命令:
composer require skylarkelty/purity5
包简介
Purity5 is a HTML5 parser, with a similar interface to jQuery
README 文档
README
Purity5 is a HTML5 query library, with a similar interface to jQuery.
To use, simply include Purity5 and use like so:
$html = Purity5::parse($markup); $title = $html("title"); $table_headings = $html("body table tr th"); $first_table_headings = $html("body table tr th:first-child"); $active_links = $html("body a[class=active]"); $active_current_links = $html("body a[class=active+current]");
Supported Selectors
- a > b
- a + b
-
- .a
- #a
- a.b
- a#b
- .a.b
- a:first-child
- a:last-child
- a:nth-child(num|even|odd)
- a[attr='val']
统计信息
- 总下载量: 13
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache
- 更新时间: 2013-08-12