Is there a way to HTML encode a string (NSString) in Objective-C, something along the lines of Server.HtmlEncode in .NET?
Use the message in the example below :
anyStringConverted = [anyString stringByReplacingOccurrencesOfString:@"\n" withString:@"
"];
This converts 'new line' command to corresponding html code. But to convert symbols, you have to write the corresponding html number. You can see the complete list of html numbers here at
http://www.ascii.cl/htmlcodes.htm