Skip to content

Commit a171547

Browse files
committed
Add ability for a comment to replace newlines with breaks in HTML so they display nicer
1 parent c74b869 commit a171547

File tree

3 files changed

+346
-340
lines changed

3 files changed

+346
-340
lines changed

Server/Blog/Templates/_default/Comment.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</div>
99
</div>
1010
<div class="content">
11-
[comment:comment]
11+
[comment:comment|html]
1212
</div>
1313
<div class="actions">
1414
<abbr data-time="[comment:CreatedOnDateUTC|yyyy-MM-dd HH:mm:ss]" class="moment">[comment:CreatedOnDateUTC]</abbr>

Server/Blog/Templates/classicBlog/Comment.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<a href="[commenter:profileurl]">[comment:displayname]</a>&nbsp;<abbr title="[comment:CreatedOnDateUTC|u]" class="blog_commenttimeago"></abbr>
1212
</div>
1313
<div>
14-
<p>[comment:comment]</p>
14+
<p>[comment:comment|html]</p>
1515
</div>
1616
<div class="commentMod dnnRight">
1717
[subtemplate|CommentApproveBar.html|security:canapprovecomment|True]

0 commit comments

Comments
 (0)