NSString *contentStr = [NSString stringWithFormat:@"<head><style>img{width:%f !important;height:auto;}</style></head>%@",SCREEN_WIDTH-30,text];
NSMutableAttributedString *attributedString= [[NSMutableAttributedString alloc] initWithData:[contentStr dataUsingEncoding:NSUnicodeStringEncoding] options:@{NSDocumentTypeDocumentAttribute:NSHTMLTextDocumentType} documentAttributes:nil error:nil];
[attributedString addAttribute:NSFontAttributeName value:FONT(15) range:NSMakeRange(0, attributedString.length)];
[attributedString addAttribute:NSForegroundColorAttributeName value:UIColorFromRGB(0x666666) range:NSMakeRange(0, attributedString.length)];
CGSize attSize = [attributedString boundingRectWithSize:CGSizeMake([UIScreen mainScreen].bounds.size.width-64, MAXFLOAT) options:NSStringDrawingUsesLineFragmentOrigin | NSStringDrawingUsesFontLeading context:nil].size;