+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Get Razor to not recognize @ symbol every time

Get Razor to not recognize @ symbol every time

2 posts, 1 answered
  1. ian
    ian avatar
    45 posts
    Registered:
    25 Feb 2013
    20 May 2013
    Link to this post
    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?
  2. ian
    ian avatar
    45 posts
    Registered:
    25 Feb 2013
    20 May 2013 in reply to ian
    Link to this post
    Nevermind if you use @ instead of @ then it gives you the correct results
    Answered
2 posts, 1 answered