Idsa Idsa - 1 month ago 9
ASP.NET (C#) Question

ASP.NET MVC Razor render without encoding

Razor encodes string by default. Is there any special syntax for rendering without encoding?

Answer

Since ASP.NET MVC 3, you can use:

@Html.Raw(myString)
Comments