title: Multi line string containing special characters in javascript?
body: <p>I'm trying to use the javascript port of processing found at <a href="http://ejohn.org/blog/processingjs/" rel="nofollow noreferrer">http://ejohn.org/blog/processingjs/</a> I want to use the following constructor. <code>Processing(CanvasElement, "some massive block of code");</code> I know javascript doesn't natively support multiline strings but is there a way to pass something like the following with out having to concatenate every line and escape every special character? </p>
  
  <pre><code>/**
   * Array. 
   * 
   * An array is a list of data. Each piece of data in an array 
   * is identified by an index number representing its position in 
   * the array. Arrays are zero based, which means that the first 
   * element in the array is [0], the second element is [1], and so on. 
   * In this example, an array named "coswav" is created and
   * filled with the cosine values. This data is displayed three 
   * separate ways on the screen.  
   */
  
  size(200, 200);
  
  float[] coswave = new float[width];
  
  for (int i = 0; i &lt; width; i++) {
    float amount = map(i, 0, width, 0, PI);
    coswave[i] = abs(cos(amount));
  }
  
  for (int i = 0; i &lt; width; i++) {
    stroke(coswave[i]*255);
    line(i, 0, i, height/3);
  }
  
  for (int i = 0; i &lt; width; i++) {
    stroke(coswave[i]*255 / 4);
    line(i, height/3, i, height/3*2);
  }
  
  for (int i = 0; i &lt; width; i++) {
    stroke(255 - coswave[i]*255);
    line(i, height/3*2, i, height);
  }
  </code></pre>