Aug

15

Escaping Razor View @ Symbol in MVC project

Posted by 1 Comment

To escape the Razor View’s @ symbol in an MVC project you can either use double @ signs:

@@

Or you can use Html.Raw to display the symbol:

@Html.Raw("@")

Category: .NET, Development, MVC, MVC4, Web Development

Leave a Reply