URL-encoding and HTML-encoding NSStrings
问题 Is their a method to encode/decode HTML and URL (in Xcode, using Objective-C)? [NSString stringWithContentsOfFile:<#(NSString *)path#> encoding:<#(NSStringEncoding)enc#> error:<#(NSError **)error#>] This doesn't seem to work how i expected. I thought it will convert special characters like "<" to equivalent HTML entities i.e. "<" in this case. Here's a reference to the w3school link related to this topic (general): HTML URL Encoding Reference HTML Entities Reference Thanking in anticipation.