title: Call Javascript Function with multi-line string from UIWebView
body: <p>I am using <code>D3.js</code> to create a chart for some information in the form of a TSV File. I have the TSV file saved as a NSString. In the javascript I have a function that will take the string, parse it, and create a chart based on its contents. Here is my code for calling the <code>JS</code> function:</p>
  
  <pre><code>[self.mainWebView stringByEvaluatingJavaScriptFromString:[NSString stringWithFormat:@"parseTSV(\"%@\");", tsvString]];
  </code></pre>
  
  <p>The function is never called in the above code, but it is if I pass in a random string literal like this:</p>
  
  <pre><code>[self.mainWebView stringByEvaluatingJavaScriptFromString:@"parseTSV(\"randomString\")"];
  </code></pre>
  
  <p>Is this possibly because <code>JS</code> doesn't take a string with multiple lines as a function argument? Is there any workaround for this?</p>
  
  <p>Thanks.</p>