mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 03:25:23 +08:00
Removing extra $1 after newlines in text field front-end rendering.
--HG-- branch : 1.x
This commit is contained in:
@@ -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>
|
||||
}
|
Reference in New Issue
Block a user