<html> <head> </head> <body> <img src = "http://t1.baidu.com/it/u=1075557596,3331641536&fm=15&gp=0.jpg"> 这是文字 <br/><br/> </body> </html>
////获取html到NSString NSURL *url = [NSURL URLWithString:@"http://www.xtox.net/product/detail.action?product.id=11"]; NSString *strHtml = [NSString stringWithContentsOfURL:url encoding:NSUTF8StringEncoding error:nil]; ////显示到UIWebView [self.m_web loadHTMLString:strHtml baseURL:nil];