Its a .Net Core 2.0 application running on Visual Studio 2017 I want to display an HTML string returned on the View.
I have added the Microsoft.AspNetCore.Html.Abstractions Nuget to my application, and I want to display an HTML sting on the Razor view, this is how my CSHTML looks like
@model EDMTLC.Models.QuickResultViewModel
@using Microsoft.AspNetCore.Html;
<div>@Html.Display(Model.ResultHTML) </div>
<div>TEST</div>
I don't think @Html.Display is the way I should be doing. In previous version .Net I used to to
<div>
<text> @MvcHtmlString.Create(Model.ReportHTML)</text>
</div>
but this will not work anymore with Core 2.0
Can someone help with an example? I found this thread, but it didn't help!
Thanks