title: Encode special characters in cshtml
body: <p>I have a razor view which has a hidden field <code>Model.Token</code>. The <code>Token</code> consist of special characters. This <code>Token</code> is appended to a link in href.</p>
  
  <pre><code>&lt;a href='http://localhost.com?token=@Model.Token'&gt;Link&lt;/a&gt;
  </code></pre>
  
  <p>If Model.Token has a <code>+</code>, the link renders it as a blank space. That is, if</p>
  
  <pre><code>Model.Token = 'ABC+DE'
  </code></pre>
  
  <p>The link becomes </p>
  
  <pre><code>http://localhost.com?token=ABC DE
  </code></pre>
  
  <p>How do I encode the <code>Token</code> in the link so that <code>+</code> is not removed? Do I need to use have a js and use <code>encodeURI</code>, or is there a better way to achieve this?</p>