// 获取html到NSString
NSURL *url = [NSURL URLWithString:@"http://xxx/xxx/xxx"];
NSString *strHtml = [NSString stringWithContentsOfURL:url encoding:NSUTF8StringEncoding error:nil];
// 显示到UIWebView
[webView loadHTMLString:strHtml baseURL:nil];
// 显示到UITextView (用不了)
[textView setContentToHTMLString:strHtml];
// iOS6 之后的UITextView和UILabel 有attributedText 属性,可以设置字符串显示的多样化显示。
NSAttributedString *attributedString = [[NSAttributedString alloc] initWithData:[strHtml dataUsingEncoding:NSUnicodeStringEncoding] options:@{NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType } documentAttributes:nil error:nil];
textView.attributedText = attributedString;