Server.HtmlEncode vs Encoder.HtmlEncode
<p>I have the below code in my MVC application.</p>

<pre><code> text = Server.HtmlEncode(text);
 text=Encoder.HtmlEncode(text);
</code></pre>

<p>what is the difference will do if I use AntiXSS library here?</p>

<p>I passed the value     <code>&lt;script&gt;alert("strek")&lt;/script&gt;</code></p>

<p>to the variable text it returns the same output for both the cases. Where it will make difference?</p>