Escape @ character in razor view engine

后端 未结 15 1985
梦谈多话
梦谈多话 2020-11-22 07:55

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

15条回答
  •  萌比男神i
    2020-11-22 08:43

    I couldn't get any of these to work inside my placeholder attribute, so I used xml special character.

    
    

    See more examples here. https://www.dvteclipse.com/documentation/svlinter/How_to_use_special_characters_in_XML.3F.html

提交回复
热议问题