title: asp mvc: how to render Html.DisplayFor(modelItem => item.PostContent) as html in webpage?
body: <p>I have an asp mvc website that displays content of posts as plain string! meaning it displays all html tags in the web browser instead of rendering them as html! so If eg I have in my post: <code>&lt;b&gt;my content &lt;/b&gt;</code> it will show it in the web browser as it is! It won't render those html tags!
  In the  view I have:</p>
  
  <pre><code> @Html.DisplayFor(modelItem =&gt; item.PostContent)
  </code></pre>
  
  <p>and I already tried to use</p>
  
  <pre><code>@Html.Raw(Html.DisplayFor(modelItem =&gt; item.PostContent))
  </code></pre>
  
  <p>but that doesn't work and gives errors!
  Can someone please help me with this?
  Thanks</p>
  
  <p>PS: item.PostContent is the content of my post which is being read from my Database which includes html content.</p>