Open jzabroski opened 4 years ago
@HTML.Raw is flawed anyway.
Better practice to use HtmlString. So my workaround is to directly from your RazorView you can call @(new Microsoft.AspNetCore.Html.HtmlString("test"))
Probably nicer to wrap that up in an extension:
public static class Html { public static HtmlString Raw(string source) { return new HtmlString(source); } }
then you can call @Html.Raw("test") from inside your templates..
Re-open #22
Users want to be able to use HtmlHelper and @Html.Raw syntax from razor light models.
@martinalderson @jmevel @bjcull @jjxtra