ASP.NET MVC Razor render without encoding
.net, asp.net, asp.net-mvc, c#, razor
Solution
Since ASP.NET MVC 3, you can use:
@Html.Raw(myString)
Problem
Razor encodes string by default. Is there any special syntax for rendering without encoding?
.net, asp.net, asp.net-mvc, c#, razor
Since ASP.NET MVC 3, you can use:
@Html.Raw(myString)
Razor encodes string by default. Is there any special syntax for rendering without encoding?