In My Application I need to Read HTML Page. For That Purapose I am removing the HTML tags Using the below code.
-(NSString *) stringByStrippingHTML:(NSString *)htmlStr
{
NSRange r;
while ((r = [htmlStr rangeOfString:@"<[^>]+>" options:NSRegularExpressionSearch]).location != NSNotFound)
htmlStr = [htmlStr stringByReplacingCharactersInRange:r withString:@""];
htmlStr=[htmlStr stringByReplacingOccurrencesOfString:@" " withString:@"\n"];
NSLog(@"html update is %@",htmlStr);
return htmlStr;
}
I am Getting result removing all tags its works Fine. But Now in My HTML page i need to read img Tag and their src element . Is there any way t read specic tag complete info. Please any one Help in this isse.
Thank In Advance.