title: How does Html.Raw MVC helper work?
body: <p>I use the Html.Raw to print a raw html content, for example when I send some thing like <code>ViewBag.div = "&lt;div&gt; Hello &lt;/div&gt;";</code> from the controller to the view side it does not print a raw html content unless I use the <code>Html.Raw</code> method but if I have an encoded content, like content encoded using jquery and inserted into the database and I want to print it as a raw html content the <code>Html.Raw</code> method does not work and I have to use <code>HttpUtility.HtmlDecode(EncodedContent)</code> before I use <code>Html.Raw</code> so please could anyone explain why it acts in this way and what is the proper situation to use <code>Html.Raw</code> method? or in another way, why <code>Html.Raw</code> does not work when it receives html entities as a parameter instead of html tags?.</p>