new line html
<!-- Code by Scratchy -->
<!-- Twitter: @S_cratchy-->
Line 1 of text
<br>
Line 2 of text
new line html
<!-- Code by Scratchy -->
<!-- Twitter: @S_cratchy-->
Line 1 of text
<br>
Line 2 of text
html text content new line
//setting this css style solving problem with new line in textContent
h1.setAttribute('style', 'white-space: pre;');
//add \r\n in text everywhere You want for line-break (new line)
h1.textContent = "this is line one \r\n and this is line 2";
html put newline in text with \n
white-space: pre-line;
html with new line \n
<span style="white-space: pre-line">@Model.CommentText</span>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us