0

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.

2
  • Having HTML in an NSString is an error in the first place. Where do all the people come from that mix up binary buffers with strings. Commented Oct 18, 2010 at 18:38
  • 1
    I am parsing a huge XML file. All elements but this one contain plain text. There for in my parserDidFindText method I have it set into an NSMutableString. Commented Oct 18, 2010 at 18:59

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.