Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use @ symbol in MVC?

When I'm using @ in Razor MVC -as text- I get a parse error:

"&" is not valid at the start of a code block.  Only identifiers, keywords, comments, "(" and "{" are valid.

There must be something simple about this, can't figure it out.

The code:

<p><b>2011</b> <a target="_blank" href="http://www.blabla.nl">blabla</a>w/ @twittername<br />Done 12/2011</p>
like image 770
Ralf de Kleine Avatar asked Dec 12 '22 07:12

Ralf de Kleine


1 Answers

One way would be to use the HTML code &#64;

like image 124
Richard Dalton Avatar answered Jan 14 '23 02:01

Richard Dalton