富文本设置图片大小和字体大小
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(0
x666666) range:NSMakeRange(0, attributedString.length)];
{{o.name}}
{{m.name}}