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:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user