I have many HTML strings (news items from google reader) to process. Majorly what I need to do is to retrieve all img tags from the HTMLs.
Can anyone tell me a most efficient way to do that?
Thanks
Also, what if I need to retrieve all tags as well as
tags? Any fastest way to retrieve both or even more tags in one run?
Thanks
Try libtidy + NSXMLParser:
From the doc,
NSXMLDocumentTidyHTML: Formats HTML into valid XHTML during processing of the document.If this doesn’t work, you can try loading the HTML source into an UIWebView and use javascript to access the DOM.