title: handle unterminated string constant in javascript
body: <p>When my sql server SP returning string with new line character and in my jsp I pass it to script function and display it in alert box it throws : </p>
  
  <pre><code>function sample(notes){
      alert(notes);
  }
  
  Error:
  script1015: unterminated string constant 
  </code></pre>
  
  <p>I can handle it in SP like</p>
  
  <pre><code>REPLACE(BDT.Notes , CHAR(13) + CHAR(10), ''&lt;br/&gt;'' ) as Notes
  </code></pre>
  
  <p>But is there any way to handle it in script?</p>