I am trying to assign to a javascript variable some html script, but cannot succeed. Here is what I am trying:

       var blah = @Html.Raw("Some <strong>text<\/strong>");

I cannot even say what the error is, as the result I get looks cryptic:

enter image description here

Thanks

Related posts

Recent Viewed