Using .net core, how can i show the html content coming from database on view
<p>I have the business login written in <code>Application_BeginRequest</code> method of <code>Global.asax</code> file where i get an html content from database and set the content at view using literal control.</p>

<p>Now i am migrating the project into .net core where i want the same thing to do as mentioned above. I have got the html content in the code using <code>middleware</code> but now i am trying to show the content on view but unable to do so.</p>

<p>Following is my model</p>

<pre><code>@model string
&lt;div id="content"&gt;@Model&lt;/div&gt;
</code></pre>

<p>and i am returning </p>

<pre><code>return View(html);
</code></pre>

<p>as a string.</p>

<p>My question is, i want to know the steps that how can i show the html content coming from database on view using .net core.</p>