As GetAsText() had no other purpose when WebForm Controls were removed, it is now replaced with the populated Text property

This commit is contained in:
elitsa
2020-02-25 13:33:22 +01:00
parent 10563577d9
commit c3d3e6e27d
2 changed files with 2 additions and 2 deletions
@@ -61,7 +61,7 @@ namespace Umbraco.Web.PropertyEditors.ValueConverters
macroAlias,
umbracoContext.PublishedRequest?.PublishedContent,
//needs to be explicitly casted to Dictionary<string, object>
macroAttributes.ConvertTo(x => (string)x, x => x)).GetAsText()));
macroAttributes.ConvertTo(x => (string)x, x => x)).Text));
return sb.ToString();
}
+1 -1
View File
@@ -119,7 +119,7 @@ namespace Umbraco.Web
x => x.Key.ToLowerInvariant(),
i => (i.Value is string) ? HttpUtility.HtmlDecode(i.Value.ToString()) : i.Value);
var html = _macroRenderer.Render(alias, content, macroProps).GetAsText();
var html = _macroRenderer.Render(alias, content, macroProps).Text;
return new HtmlString(html);
}