I am new in iOS and I am facing problem regarding to add HTML content in NSMutableArray in UITableView.
I am using code like this
namearray=[[NSMutableArray alloc]init];
namearray=[responsedict valueForKey:@"News"];
NSMutableArray *trimmedStrings = [NSMutableArray array];
for (NSString *string in namearray) {
NSCharacterSet *doNotWant = [NSCharacterSet characterSetWithCharactersInString:@"<p></p>&#39;"];
NSString *trimmedString = [[string componentsSeparatedByCharactersInSet: doNotWant] componentsJoinedByString: @""];
[trimmedStrings addObject:trimmedString];
}
namearray = trimmedStrings;
"<p>"I don't want to live in a lie anymore. When I was 10, my mother in a hotel in Athens, Greece.</p>"
NSString *aux = @"your string";
NSAttributedString * attrStr = [[NSAttributedString alloc] initWithData:[aux dataUsingEncoding:NSUnicodeStringEncoding] options:@{ NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType,NSFontAttributeName:font} documentAttributes:nil error:nil];`
set font which you want to set in font attribute