Is there a way to HTML encode a string (NSString) in Objective-C, something along the lines of Server.HtmlEncode in .NET?
If you can use NSXMLNode (on OS X) Here is the trick:
NSString *string = @"test" NSXMLNode *textNode = [NSXMLNode textWithStringValue:string]; NSString *escapedString = [textNode.XMLString];