Issue in removing Tags in HTML FIles using IPhone SDK?

makssemen

New Member
In My Application I need to Read HTML Page. For That Purapose I am removing the HTML tags Using the below code.\[code\]-(NSString *) stringByStrippingHTML:(NSString *)htmlStr { NSRange r; while ((r = [htmlStr rangeOfString:@"<[^>]+>" options:NSRegularExpressionSearch]).location != NSNotFound) htmlStr = [htmlStr stringByReplacingCharactersInRange:r withString:@""]; htmlStr=[htmlStr stringByReplacingOccurrencesOfString:@"&nbsp;" withString:@"\n"]; NSLog(@"html update is %@",htmlStr); return htmlStr; }\[/code\]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.
 
Back
Top