简体   繁体   English

TFHppleElement(Hpple),在iPhone上解析HTML

[英]TFHppleElement (Hpple), parsing HTML on iphone

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. 我正在使用Hpple,到目前为止,一切都非常好,但是我想将所有div都放入另一个,并且我可以做到。 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. 但是后来我无法进一步解析内容(innerHTML,并且在源代码中被标记为innerHTML而不是innerText),要求元素内容不返回任何内容,因为该元素中没有直接文本,只有子节点/元素然后包含文本。

What alternatives are there to Hpple and parsing HTML on the iPhone. 在iPhone上,Hpple和解析HTML有哪些替代方法。

The alternatives to Hpple I have found so far were: 到目前为止,我发现的Hpple替代品有:

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. 由于我自己正在研究问题,因此我仍然不知道,但是哪一个最适合您的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM