nokogiri:用于PHPHTML解析器-ПарсерHTML

时间:2021-02-03 19:32:59
【文件属性】:
文件名称:nokogiri:用于PHPHTML解析器-ПарсерHTML
文件大小:32KB
文件格式:ZIP
更新时间:2021-02-03 19:32:59
css html php nokogiri html-parser 注意:新版本可能会破坏兼容性,在这种情况下,请使用v1.0分支或标记下的先前版本,该版本甚至支持php 5.4+ \ nokogiri类用于兼容性 HTML解析器 该库是一个快速HTML解析器,可以处理无效代码(错误将被忽略)。 底层使用LibXML。 作为输入,您可以使用UTF-8编码或DOMDocumentHTML字符串。 对于查询元素,使用CSS选择器,它们在内部转换为XPath表达式。 用法 载入HTML HTML错误将被忽略 从HTML字符串$saw = new \nokogiri($html); $saw = \nokogiri::fromHtml($html); 来自DOM
【文件预览】:
nokogiri-master
----.php_cs(2KB)
----.gitignore(78B)
----src()
--------Css()
--------Exceptions()
--------Old()
--------Dom()
--------Nokogiri.php(3KB)
----LICENSE(1KB)
----composer.json(1KB)
----.github()
--------workflows()
----README.md(2KB)
----phpunit.xml(1KB)
----demo()
--------demo.php(468B)
--------test.html(356B)
----nokogiri.php(4KB)
----tests()
--------integration-phpunit()
--------manual()
--------unit-phpunit()
--------functional-phpunit()
----README.RU.md(3KB)

网友评论