title: Display string as html in asp.net mvc view
body: <p>I have a controller which generates a string containing html markup. When it displays on views, it is displayed as a simple string containing all tags.</p>
  <p>I tried to use an Html helper to encode/decode to display it properly, but it is not working.</p>
  <pre><code>string str= &quot;&lt;a href=&quot;/Home/Profile/seeker&quot;&gt;seeker&lt;/a&gt; has applied to &lt;a href=&quot;/Jobs/Details/9&quot;&gt;Job&lt;/a&gt; floated by you.&lt;/br&gt;&quot;;
  </code></pre>
  <p>On my views,</p>
  <pre><code>@Html.Encode(str)
  </code></pre>