First of all, I found this: Objective C HTML escape/unescape, but it doesn't work for me.
My encoded characters (come from a RSS feed, btw) look like this: &
I searched all over the net and found related discussions, but no fix for my particular encoding, I think they are called hexadecimal characters.
Check out my NSString category for HTML. Here are the methods available:
- (NSString *)stringByConvertingHTMLToPlainText;
- (NSString *)stringByDecodingHTMLEntities;
- (NSString *)stringByEncodingHTMLEntities;
- (NSString *)stringWithNewLinesAsBRs;
- (NSString *)stringByRemovingNewLinesAndWhitespace;