Forgoten Dynasty
Forgoten Dynasty

Reputation: 11

Parse HTML that is stored in a NSString

I am parsing a group of post on a blog. I have some HTML that I successfully assigned to a string. I am trying to get the HTML to display in a UITableview. However, I want it formatted.
For instance I want <br /> to actually do a line break in the table and <img scr= to actually display the picture. How can I accomplish this.

Upvotes: 0

Views: 328

Answers (1)

Genericrich
Genericrich

Reputation: 4641

Don't ever ever ever use UIWebView in UITableView. It won't end well.

You should check out the Three20 project's TTStyledTextLabel, which will do some basic HTML formatting. I have used it with good results in the past.

Upvotes: 1

Related Questions