<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
<span style="white-space: pre-line">@Model.CommentText</span>
Code Example |
---|
Html :: lorem ipsum generator |
Html :: basic html boilerplate |
Html :: change the font-size on a label css |
Html :: open html file in localhost |
Html :: which text is used to create text animations in html |
Html :: remove padding in code |
Html :: bootsrap card |
Html :: time.mktime |
Html :: game code in html |
Html :: bootstrap box |
Html :: table design in html |
Html :: v-expansion-panel example |
Html :: collapse bootstrap |
Html :: bootstrap navs tabs code |
Html :: html with lang |
Html :: html autoplay loop many videos |
Html :: laravel datatables edit column html |
Html :: html extarea line break |
Html :: what is the PERN stack |
Html :: html online editor |
Html :: underline text html |
Html :: html code for text link new window |
Html :: javascript button toggle on off |
Html :: is it illegal to hunt polar bears |
Html :: execute vue ui |
Html :: td whole row css |
Html :: google font library |
Html :: twig batch |
Html :: yaml multiline string |
Html :: icon for right arrow |