We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac4434a commit 8465e24Copy full SHA for 8465e24
src/Bloggy/Controllers/BlogController.cs
@@ -45,6 +45,7 @@ public IActionResult Details(string slug, Comment comment)
45
{
46
comment.PostId = post.Id;
47
comment.PublishedAt = DateTime.UtcNow;
48
+ comment.Content = comment.Content.Replace(Environment.NewLine, "<br/>");
49
_blogService.AddComment(comment);
50
}
51
0 commit comments