I have a string which contains \n.I want that to be rendered as a <br>new lew line .
I have a code written for a perticular div:
but there may be multiple divs with .brk class and they may contain \n in the string.
var str = $('.brk').text().replace(/\\n/g,"<br/>");
<td colspan="2" class="main_sub_title_black brk" style="padding:0;">
<!--s:property value='titleInstruction' escape='false'/-->
In addition to Username and Password, an Authentication Code is required to access Merlin.net. Follow these steps to complete the login process:\n\n 1. Select the delivery method to receive an Authentication Code.\n 2. Press "Get Authentication Code" and receive a code through the selected method.\n 3. Enter the received Authentication Code and press "Continue"
How to resolve that issue?