title: Escape NSString for javascript input
body: <p>I have a string of ASCII characters (created randomly by [NSString stringWithFormat:@"%c", someNumber]), and I want to use that string as input for a javascript method. Something like:</p>
  
  <pre><code>[webView_ stringByEvaluatingJavaScriptFromString:[NSString stringWithFormat:@"my_javascript_method(\"%@\")", myASCIIString]];
  </code></pre>
  
  <p>How can I escape the NSString? I tried to look into encodeURI and decodeURI, but haven't found any solution yet.</p>