I have some HTML-encodet text in a database, and when I retrieve it I HTML-decode it. The problem is that the HTML tags are not interpreted, but displayed.
If I have the following paragraph:
<p> 	Hello World</p>
It will output:
<p> Hello World </p>
I output the code as following:
@Server.HtmlDecode(Model.Message)
What simple thing might I be missing?
You are missing the
Html.Rawhelper:Make sure that you have sanitized the input before since the Html.Raw helper will output the HTML as-is without encoding.