I am trying to generate emails with HTML content. this content has already gone through sanitation so I am not worried in that regard, however when I call:
I found all of these worked with me.
@{var myHtmlString = new HtmlString(res);} @myHtmlString @MvcHtmlString.Create(res) @Html.Raw(res)