Possible Duplicate:
Emitting unencoded strings in a Razor view
I have a string that has HTML tags such as:
string = "hi<br/>bye";
I want to be able to output this in my C# ASP.NET MVC3 (Razor) view such that the <br/> tags are preserved and not encoded. I know encoding is happening automatically to prevent cross-site scripting.
What’s the best way to handle this?
I think you’re looking for
@Html.Raw.