Vins
Vins

Reputation: 1934

Convert HTML special characters in a string

Through a JSON parser from Google, I get a string. But it contains all the special characters in html format, such as ' instead of '.

Do you know if there is a special encoding, or some method?

Upvotes: 1

Views: 1669

Answers (1)

Léo Natan
Léo Natan

Reputation: 57040

Take a look at the Google Toolbox for Mac, specifically the GTMNSString+HTML category. - (NSString *)gtm_stringByUnescapingFromHTML; is what you need.

Upvotes: 3

Related Questions