ASP.NET MVC Razor render without encoding

Solution 1:

Since ASP.NET MVC 3, you can use:

@Html.Raw(myString)

Solution 2:

@(new HtmlString(myString))