How to handle HTML Strings in Cocoa Touch
- by balexandre
I'm using a RSS Reader and works fine when I tap the UITableViewCell to load the <link> either in a UIWebView or to open Safari on that link.
But I really want to learn how to load the Topic content into the application instead showing the entire site or jump to Safari
In the RSS feed per each <item> there is a <body> tag (and a <Description> that contains the same but encoded) that contains the topic content, like the image below shows:
So, instead of catching the <link> I'm assigning the <body>. Problem is that it does not work correctly :-(
for this example I only get the content until the first <br> nothing more.
I'm using a NSString as I would use in C#, should I use any other object, is there a better object to use on such data?
Should I use an UITextView to load this information (as it has scroll already) or I should use a UIWebView instead?
Thank you.