如何在iPhone中通过HTML解析获得链接的标题和描述



作为一个例子,我使用以下链接进行解析:

http://in.news.yahoo.com/key-kiwis-players-south-african-crosshair-says-kirsten-105534372.html

&我得到的页面标题是这样的:

HtmlElement*currentElement;

        currentElement = [[htmlParser elementArray] objectAtIndex:0];
        titleLabel.text = [currentElement value];

现在我需要访问该页面中的内容。我无法访问它,因为该页面中有许多div和段落。我怎样才能做到这一点?

u可以使用这个:

https://github.com/mwaterfall/MWFeedParser/blob/master/Classes/NSString+HTML.m

最新更新