I have webservice response like this.
NSString *str= @"Slight <b>left</b> onto <b>Adelaide Rd/B509</b><div style="font-size:0.9em">Continue to follow Adelaide Rd</div>";
I have to convert html tags in the above str to plain text.Can u please suggest me solution for this.
You can use NSScanner class to parse the HTML.
Have a look at this post: How to convert NSString HTML markup to plain text NSString?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.