
What is NSString Encoding Type in XCode?

You will need to write your own function that does string replacements. See below..
'&' => "&" '"' => """ '\'' => "'" '>' => ">" '<' => "<"
It should implement like the given example...
[
[[[[myStr stringByReplacingOccurrencesOfString: @"&" withString: @"&amp;"] stringByReplacingOccurrencesOfString: @"\"" withString: @"&quot;"] stringByReplacingOccurrencesOfString: @"'" withString: @"&#39;"] stringByReplacingOccurrencesOfString: @">" withString: @"&gt;"] stringByReplacingOccurrencesOfString: @"<" withString: @"&lt;"];
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.