1.TFHpple-master
html解析并且获取内容
// 将html字符串转为
NSData *data = [html dataUsingEncoding:NSUTF8StringEncoding];
// 创建Hpple对象
TFHpple *xpathParser = [[TFHpple alloc] initWithHTMLData:data];
// 搜索XPath寻找标签
NSArray *elements = [xpathParser searchWithXPathQuery:@"//p"];
NSString *str = @"";
//取html的正文内容
for (TFHppleElement *element in elements) {
str = [NSString stringWithFormat:@"%@%@",str,[element content]];
}