<p>I have HTML code edited by FCKEditor stored in a database and would like to display (well render) it onto a view. So, for instance, something stored as:</p>
<pre><code>&amp;lt;&amp;gt;pre&amp;lt;&amp;gt;This is some sample text&amp;lt;&amp;gt;pre&amp;lt;/&amp;gt
</code></pre>
<p>Will be displayed to the user as:</p>
<pre><code>This is some sample text
</code></pre>
<p>(With the appropriate style for pre-formatted-text)</p>
<p>The view already has the required string to display from <code>ViewData</code>, I'm just not sure what the best way to show it to the user is.</p>

Try this:
```
```
<%= System.Web.HttpUtility.HtmlDecode(yourEncodedHtmlFromYouDatabase) %>
```
```
More info
here
.