I'm developing a WordPress app for iPhone. I get links from feed.
The problem is links in xml is changed if it has '&' character. '&' is replaced by '&'.
For example:
I can correct this problem by the simple statement below:
link = [link stringByReplacingOccurrencesOfString:@"&" withString:@"&"];
It run correctly, the result is
But I want a intelligent solution same as:
link =[link stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
The above statement run incorrectly.
How can I do?
Thank you!