title: Turn off HTML Encoding in Razor
body: <p>I have a function that returns a snippet of JavaScript and/or HTML.</p>
  
  <pre><code>static public string SpeakEvil()
  {
      return "&lt;script&gt;alert('BLAH!!');&lt;/script&gt;";
  }
  </code></pre>
  
  <p>In the view, Razor is quite rightly HTML encoding it, as most would expect. </p>
  
  <pre><code>@StaticFunctions.SpeakEvil()
  </code></pre>
  
  <p>How do I have Razor <strong>not</strong> HTML Encode this, so that the HTML and JavaScript are emitted verbatim, and that any script actually runs?</p>