Get Razor to not recognize @ symbol every time

Posted by Community Admin on 04-Aug-2018 14:09

Get Razor to not recognize @ symbol every time

All Replies

Posted by Community Admin on 20-May-2013 00:00

So when putting an @ symbol into a javascript portion of code such as
$("#filter").tweet(
count: @Model.Tweets,
filter: function(t) return ! /^@\w+/.test(t["tweet_raw_text"],
username: '@Model.TwitUser'
);
how do you get around the system thinking that is Razor and the beginning of a code block?

Posted by Community Admin on 20-May-2013 00:00

Nevermind if you use @ instead of @ then it gives you the correct results

This thread is closed