title: How do you encode a string within the MVC controller?
body: <p>I've tried using this:</p>
  
  <pre><code>Forum.Body = WebUtility.HtmlEncode(Forum.Body);
  </code></pre>
  
  <p>To encode the a string of text but it still doesn't encode the variable. What's wrong with the syntax?</p>