title: Get variable value with line break similar to paste with new line in jquery
body: <p>When I copy and paste text with new line in input box, the required result is not populated.
  I have following line of code:</p>
  
  <pre><code>A &amp; C - John Doe - 1221
  P &amp; C - Hexaa - 122
  </code></pre>
  
  <p>When I copy this text in paste in input box, It seems to be like this</p>
  
  <pre><code>A &amp; C - John Doe - 1221 P &amp; C - Hexaa - 122
  </code></pre>
  
  <p>But it actually have a new line inserted between the code. How can I equate both the text when pasted in input box?</p>