Nicolò Ciraci
Nicolò Ciraci

Reputation: 678

HTML to NSString

I have a NSString flood of HTML special characters, there is a way to gain the text like when the page is visualized on a browser? Or I must convert it from php?

Upvotes: 0

Views: 305

Answers (1)

Joshua Nozzi
Joshua Nozzi

Reputation: 61228

If you want only text from an HTML page that can contain all sorts of things, it's probably best to use WebKit to walk the DOM and extract the text from interesting elements. The docs are a little anemic here, but now that you know a good mechanism, it's far easier to find specific examples on the web.

Upvotes: 1

Related Questions