Removing Regex usage

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2012-08-09 17:06:00 -07:00
parent 26faadbc64
commit 725f940e4f
5 changed files with 312 additions and 38 deletions

View File

@@ -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>
}