最近用Hpple这个框架解析html,但是我只能得到文本,得不到outerHtml?
如:NSArray *elements = /div@class=‘content’]/p/text()"];
得到的是
i am boy
,我想要的是整个i am boy
这句。如何实现啊?
最近用Hpple这个框架解析html,但是我只能得到文本,得不到outerHtml?
如:NSArray *elements = /div@class=‘content’]/p/text()"];
得到的是
i am boy
,我想要的是整个i am boy
这句。没看出来区别啊,还有i am boy,少了个冠词。
i am boy 和
i am boy
i am boy
”