TFHppleElement(Hpple),解析iphone上的HTML [英] TFHppleElement (Hpple), parsing HTML on iphone

查看:299
本文介绍了TFHppleElement(Hpple),解析iphone上的HTML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Hpple,到目前为止效果很好,但是我想把所有的div都放在另一个里面,而且我可以做到。但后来我无法进一步解析内容(innerHTML,在源代码中它被标记为innerHTML而不是innerText),询问元素内容不会返回任何内容,因为该元素中没有直接文本,只有子节点/元素包含文本。



还有什么替代方法可以解决Hpple和解析iPhone上的HTML问题。

到目前为止我发现的 Hpple 的替代方法是:





由于我正在处理res然而,我仍然不知道哪一个最适合你的问题。


I'm using Hpple and it's been great so far however I want to get all the divs inside another and that I can do. But then I am unable to further parse the contents (innerHTML, and in the source it is labelled innerHTML not innerText) asking for the elements content returns nothing as there is no text directly in that element, only child nodes/elements which then contain text.

What alternatives are there to Hpple and parsing HTML on the iPhone.

解决方案

The alternatives to Hpple I have found so far were:

Since I am in the process of researching the issue myself I have still no idea, which one is best suited for your problem, however.

这篇关于TFHppleElement(Hpple),解析iphone上的HTML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆