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.
Written by Esha jariwala
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Xcode
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#