PHP Tidy 包替代品
我有一个 PHP 脚本,它加载 rss 提要,通过 Tidy 解析它(以创建对象),然后像数组一样进行扫描以获取所有值。但我正在移动服务器,而新服务器没有安装 Tidy。还有其他选择吗?
I have a PHP Script that loads an rss feed, parses it through Tidy (to create the object) then gets scanned through like an array to get all the values. But I am moving servers, and the new server doesn't have Tidy installed. Are there any alternatives?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以尝试htmLawed——小而快,不需要PHP 扩展
You can try htmLawed -- small and fast and doesn't require a PHP extension
Google 搜索“php parse rss”(去掉双引号),您会发现 PHP 中有很多库可以解析 RSS 提要。随你挑选。
以下是一些:
RSS PHP
喜鹊RSS
Google for "php parse rss" (less the double quotes) and you'll find lots of libraries in PHP to parse an RSS feed. Take your pick.
Here are a few:
RSS PHP
Magpie RSS