This is to show new line and return carriage in HTML, then you don’t need to do it explicitly. You can do it in CSS by setting the white-space attribute pre-line value.
<span style="white-space: pre-line">@Model.CommentText</span>
More Related Contents:
- Vertically center element on HTML page with some content on top (Bootstrap)
- Recommended way to embed PDF in HTML?
- Using relative URL in CSS file, what location is it relative to?
- Should I put input elements inside a label element?
- Is there a minlength validation attribute in HTML5?
- How to create uneven rounded sides on a div?
- HTML embedded PDF iframe
- input / button elements not shrinking in a flex container
- CSS Cut out circle from a rectangular shape
- Problems with CSS sticky footer
- How to limit the maximum files chosen when using multiple file input
- What is quirks mode?
- Example of multipart/form-data
- Limit the size of a file upload (html input element)
- How to select a text node with CSS
- CSS background-size: cover replacement for Mobile Safari
- Html Select box options on Hover?
- How to make div element auto-resize maintaining aspect ratio?
- How do I maintain scroll position in MVC?
- Is it possible to make a div 50px less than 100% in CSS3? [duplicate]
- How do I prevent the padding property from changing width or height in CSS?
- Gradient Stroke Along Curve in Canvas
- HTML parsing in perl
- How do I style the HTML form validation error messages with CSS?
- Cross-browser embedded font in svg image
- How do I trigger an HTML button when the “Enter” key is pressed in a textbox?
- Adding style to file upload button in css
- What are the default values for justify-content & align content?
- Tooltip on image
- HTML5 FileReader alternative