Function in javascript or jquery like nl2br in php
<p>I need function in javascript or jquery like nl2br in php.
Is there any function in javascript or jquery?if not suggest any equivalent solution.</p>

<p>Thanks</p>
