Very simple question but giving me hard time, I want to replace ” to \” in my entire xml file. I tried but don’t know how to do it.
My try :
escapedXMLString = [xml stringByReplacingOccurrencesOfString:@""" withString:@"\""];
of course above line won’t even compile, as I am escaping the double quote. So is there any work around?
You need the \ to escape the ” in the string for the find and a \ for the \” in the replace.