AntiXss Versus Encoder

Dec 17, 2014 at 10:59 PM
I'm looking to protect against XSS and I have been browsing around and have found various threads on the subject. I'm wondering which is a more up to date library for protecting against XSS. I've read that Encoder uses blacklist versus AntiXss uses white list. Is this true? What are the other differences?

I'm currently using .net 4.0 I was hoping somebody can point me in the right direction.