watoki/dom
Composer 安装命令:
composer require watoki/dom
包简介
A minimal (X)HTML/XML parser for PHP
README 文档
README
A very simple (X)HTML/XML parser for PHP. It's goal is that the not manipulated output is as close as possible to the input. This means that it will parse most invalid mark-up without complains.
Usage
Include dom into your project with composer and then:
$parser = new Parser('<my>Custom <html></html></my>');
$parser->getNodes()->first()->setName('Your');
$printer = new Printer();
echo $printer->printNodes($parser->getNodes()); // <Your>Custom <html></html></Your>
统计信息
- 总下载量: 12.98k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-04-19