Is there a way to make HTML properly treat \n
line breaks? Or I have to replace them with <br/>
?
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>