-(NSString *) stringByStrippingHTML:(NSString *)s
{
NSRange r;
//NSString *s = [[self copy] autorelease];
while ((r = [s rangeOfString:@"<[^>]+>" options:NSRegularExpressionSearch]).location != NSNotFound)
s = [s stringByReplacingCharactersInRange:r withString:@""];
s = [s stringByReplacingOccurrencesOfString:@"&" withString:@"&"];
return s;
}
Subscribe to:
Posts (Atom)