I think you need to use it like:
<p>@Html.Raw(Model.Text)</p>
Read more about here on the Phil Haack blog.
anurse points out in the comments that you could, alternatively, set the Text member type of your view model type to IHtmlString and just use @Model.Text for the output. ASP.NET MVC is smart enough to realize that output should not be escaped.
paracycle
source share