I'm working on my first .net core web api project, and struggling with anti XSS input sanitization. AntiXSS library isn't available and there's not a lot of informations about managing XSS+Web API+Core.
So i have to ask You: what is best way now to secure against this kind of attacks? Custom data annotation validators? Some middleware class?