Last Updated: May 27, 2016
·
4.408K
· esha

Parse HTML tags in iOS from JSON

When we parse JSON in ios it gives problem when any of the values are having HTML tags. It cant directly remove new lines and "double quotes".

Here is a range of that character :
/r , /n , br tag , " , forward slash/ etc. .

This link is having a attributed class for HTML string conversion may be this will help out with this :
https://github.com/mwaterfall/MWFeedParser/blob/master/Classes/NSString+HTML.m

We can also make regular expression about this tags and clipped it to successfully parse JSON Object.

endorse