I parse a rss file. In description tag i have also an image . How can i get it and displayed ?
I started to check if an url is in description with :
NSString *substring = @"http:"; NSRange textRange = [[item objectForKey:@"summary"] rangeOfString:substring]; if(textRange.location != NSNotFound) { NSLog(@"there is an url"); } else { NSLog(@"there is not an url"); } but i don't know how to get it
NSXMLParser, and try to find any<img>inside yourdescriptiontag. Trying to find text like that in HTML/XML code is prone to errors, you never know how the text will be formatted, if there are spaces or tabs, lowercase or uppercase, etc.