In this post, I’ll provide you a quick snippet for trimming/decoding HTML text from NSString.
So, the code snippet given here will just remove the HTML tags supplied within the NSString object.
Assume you have following string.
<h1>some data</h1> <h2>some other data</h2>
Code snippet will convert above HTML string as follows
Hope above code snippet would help you.