title: Is it possible to display raw Html from database in ASP.NET MVC 3?
body: <p>I have a table in my db where one of the properties is an Html page (without the html, head and body tags), and I intend to put it in the middle of one of my views - say, I call a cotroller method that takes an argument, and return a view passing this html big string as the model. I searched for it (not much, I admit), and found the following method:</p>
  
  <pre><code>&lt;%= System.Web.HttpUtility.HtmlDecode(yourEncodedHtmlFromYouDatabase) %&gt;
  </code></pre>
  
  <p>That was found <a href="https://stackoverflow.com/questions/300424/how-do-i-display-html-stored-in-a-database-from-an-asp-net-mvc-view">here in stackoverflow.</a> When I tried a similar razor aproach, I ended up with this:</p>
  
  <pre><code>@System.Web.HttpUtility.HtmlDecode("&lt;h1&gt;Test&lt;/h1&gt;")
  </code></pre>
  
  <p>That's the idea, but it didn't work quite as I planned.</p>