Skip to content

Commit 8465e24

Browse files
committed
Using "<br/>" instead of "\r\n" in the comments
1 parent ac4434a commit 8465e24

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Bloggy/Controllers/BlogController.cs

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public IActionResult Details(string slug, Comment comment)
4545
{
4646
comment.PostId = post.Id;
4747
comment.PublishedAt = DateTime.UtcNow;
48+
comment.Content = comment.Content.Replace(Environment.NewLine, "<br/>");
4849
_blogService.AddComment(comment);
4950
}
5051

0 commit comments

Comments
 (0)