mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-22 03:37:25 +08:00
Removing Regex usage
--HG-- branch : 1.x
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
<span class="when">@Display.CommentMetadata(ContentPart: comment)</span>
|
||||
</h4>
|
||||
</header>
|
||||
<p class="text">@(new MvcHtmlString(Html.Encode(comment.Record.CommentText).ReplaceNewLinesWith("<br />$1")))</p>
|
||||
<p class="text">@(new MvcHtmlString(Html.Encode(comment.Record.CommentText).Replace("\r\n", "<br />\r\n")))</p>
|
||||
</article>
|
||||
</li>
|
||||
}
|
||||
|
Reference in New Issue
Block a user