I have data in the form :
%3Cp%3E%3Cstrong%3Ee-AWB+and+e
I have to decode this and display in a Webview/UILabel!
I have tried this - URL Decoding, but it isn't working for me
I have data in the form :
%3Cp%3E%3Cstrong%3Ee-AWB+and+e
I have to decode this and display in a Webview/UILabel!
I have tried this - URL Decoding, but it isn't working for me
Use this -
- (NSString *)URLDecode:(NSString *)htmlString
{
NSString *decodedURL = [htmlString stringByReplacingOccurrencesOfString:@"+" withString:@" "];
decodedURL = [decodedURL stringByRemovingPercentEncoding];
return decodedURL;
}
Here you get the output as - <p><strong>e-AWB and e
e-AWB and e....
– Akshay Yerneni Mar 21 '17 at 06:50