There are a couple of different ways to remove HTML tags from an NSString in Cocoa.
One way is to render the string into an
following is the accepted answer, but instead of category, it is simple helper method with string passed into it. (thank you m.kocikowski)
-(NSString *) stringByStrippingHTML:(NSString*)originalString {
NSRange r;
NSString *s = [originalString copy];
while ((r = [s rangeOfString:@"<[^>]+>" options:NSRegularExpressionSearch]).location != NSNotFound)
s = [s stringByReplacingCharactersInRange:r withString:@""];
return s;
}