title: Output single quotes in Razor generated JavaScript String
body: <p>I am assembling a few lines in JavaScript using Razor.  I thought the easiest way would be to assemble the entire JavaScript block first, then output the entire thing.  The problem is, the single quotes are being rendered as &amp; #39;.</p>
  
  <p>Is it possible to change the last line to get this to write correctly:</p>
  
  <pre><code>    var friendArray = new Array();
      @{
          int i = 0;
          string jsString="";
          foreach(var friend in friends)
          {
              jsString = jsString + "friendArray[";
              jsString = jsString + i.ToString();
              jsString = jsString + "]='";
              jsString = jsString + friend.displayname;
              jsString = jsString + "';";
              i++;
          }
          @jsString;
      }
  </code></pre>
  
  <p>The above generates this:</p>
  
  <pre><code>  friendArray[0]=&amp; #39;Hollister&amp; #39;;friendArray[1]=&amp; #39;Festus&amp; #39;;
  </code></pre>