-(NSString *)filterHTML:(NSString *)html
{
NSScanner * scanner = [NSScannerscannerWithString:html];
NSString * text = nil;
while([scanner isAtEnd]==NO)
{
//找到标签的起始位置
[scanner scanUpToString:@"<"intoString:nil];
//找到标签的结束位置
[scannerscanUpToString:@">"intoString:&text];
//替换字符
html = [html stringByReplacingOccurrencesOfString:[NSStringstringWithFormat:@"%@>",text]withString:@""];
}
// NSString * regEx = @"<([^>]*)>";
// html = [html stringByReplacingOccurrencesOfString:regEx withString:@""];
return html;
}