I have the below code in my MVC application.
text = Server.HtmlEncode(text);
text=Encoder.HtmlEncode(text);
what is the difference will do if I use AntiXSS library here?
I passed the value <script>alert("strek")</script>
to the variable text it returns the same output for both the cases. Where it will make difference?