title: line breaks using javascript strings
body: <p>I m breaking a line in javascript using \n for example: -</p>
  
  <p>text = "this is a test" + "\n" + "another test";</p>
  
  <p>and to show that in html i m using the code</p>
  
  <pre><code>text = text.replace('\n' , '&lt;br&gt;');
  </code></pre>
  
  <p>but the text i m getting is without the br</p>
  
  <p>when checking in firebug console i get is with line break(\n not shown but newline created)</p>
  
  <p>how can i place line breaks using \n or i have to do some custom code instead of \n</p>
  
  <p>thanks</p>