I\'m using this code snippet to encode characters to be friendly with a POST request:
NSString *unescaped = [textField text];
NSString *escapedString =
I think I didn't word the question correctly.
I needed to take the user inputted NSString from [textField text] and make sure that if there are quotation marks in the string, they are escaped properly in order to send through a POST statement.
My solution was:
unescaped = [unescaped stringByReplacingOccurrencesOfString:@"\"" withString:@"\\\""];
Thanks