How do I escape ‘@’ in Blazor?

Platform: Blazor| Category: Components

In Razor, `@` symbol is used to transition from HTML to C#. To escape an ‘@‘ symbol in razor markup, use two ‘@’ (‘@@’) symbols.

<div>@@FirstName</div>

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.