I am creating a sample ASP.NET MVC 3 site using Razor as view engine. The razor syntax starts with @ character e.g. @RenderBody(). If I write @test
@
@RenderBody()
@Html.Raw("@") seems to me to be even more reliable than @@, since not in all cases @@ will escape.
@Html.Raw("@")
@@
Therefore:
would be: