Where should something like ap.use(xss()) go? Mine does not appear to be working. It is before my routes. Not sure what should happen but I was able to pass <script>alert"gotcha')</script> and it got stored in the database.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store