Removing HTML Entities from NSString

Remove HTML Entities from NSString

I know you are all annoyed when receiving HTML entities in your strings from reading an RSS. That is why MWFeedParser created a simple and clean solution for removing the HTML entities from NSString. However, you don’t need the whole library if you don’t want to use the parsing methods, just download the categories NSString + HTML and GTMNSString+HTML, import them in your project and I will show you how to use it.


Import “NSString + HTML” to your class and call:

NSString *cleanedString = [yourString stringByConvertingHTMLToPlainText];


Leave a Reply

Your email address will not be published. Required fields are marked *