removing string.empty checks for attributes.

removing the redundant clean for outputting model.value in TextString.cshtml.
This commit is contained in:
Claus
2016-11-15 12:10:36 +01:00
parent 8bb069e996
commit 6f39439e3d
5 changed files with 5 additions and 17 deletions

View File

@@ -67,10 +67,7 @@
foreach (JProperty property in cfg.Properties())
{
var propertyValue = TemplateUtilities.CleanForXss(property.Value.ToString());
if (string.IsNullOrWhiteSpace(propertyValue) == false)
{
attrs.Add(property.Name + "=\"" + propertyValue + "\"");
}
attrs.Add(property.Name + "=\"" + propertyValue + "\"");
}
JObject style = contentItem.styles;