mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
By default, html-encode translation parameters
Also ensure that any existing parameter is not double-encoded by removing .Text when used as a translation parameter.
This commit is contained in:
@@ -2,11 +2,11 @@
|
||||
|
||||
@{
|
||||
string name = Model.Name;
|
||||
string title = null;
|
||||
IHtmlString title = null;
|
||||
if (Model.State != null && HasText(Model.State.Unity)) {
|
||||
string amount = Model.State.Amount;
|
||||
string unity = Model.State.Unity;
|
||||
title = T("{0} {1} after", amount, T(unity).Text).Text;
|
||||
title = T("{0} {1} after", amount, T(unity));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user