Removing extra $1 after newlines in text field front-end rendering.

--HG--
branch : 1.x
This commit is contained in:
Bertrand Le Roy
2012-11-08 18:36:01 -08:00
parent bd078ddd68
commit e9742f6aae

View File

@@ -4,5 +4,5 @@
}
@if (HasText(name) && HasText(Model.Value)) {
<p class="text-field"><span class="name">@name:</span> <span class="value">@(new MvcHtmlString(Html.Encode((HtmlString) Model.Value).ReplaceNewLinesWith("<br />$1")))</span></p>
<p class="text-field"><span class="name">@name:</span> <span class="value">@(new MvcHtmlString(Html.Encode((HtmlString) Model.Value).ReplaceNewLinesWith("<br />")))</span></p>
}