<!-- Code by Scratchy -->
<!-- Twitter: @S_cratchy-->
Line 1 of text
<br>
Line 2 of text
<p>
Will Mateson<br />
Box 61<br />
Cleveland, Ohio<br />
</p>
//setting this css style solving problem with new line in textContent
h1.setAttribute('style', 'white-space: pre;');
//add
in text everywhere You want for line-break (new line)
h1.textContent = "this is line one
and this is line 2";
white-space: pre-line;
to start new line//
<span>new line</span>
1st line
<br>
2nd line
<p>
Line Content
<!--A newline in the cource code won't make a new line in the ouput/webpage
In other languages you may be familiar with
but in html we use the <br>
tag-->
<br>
New Line Content
</p>
<span style="white-space: pre-line">@Model.CommentText</span>