I know we are going through a bit of a shakeup in the move from 0.3.9 to 0.4.0 but I want to continue working through some issues here. Maybe this will lead to some ideas of how to do this APIStar style.
I am looking at working with Vuejs to build a SPA that will call an APIStar backend. The user will use a Quill.js component to create content, but that library does nothing for sanitizing user input. In the past with Flask I relied on the jinja2 functionality to sanitize user submitted input as it came out of the DB and was sent to the user. The problem gets a little turned around though in this use case. I want to scrub user input before it is saved in the backend. So whatever end point I submit my JSON to will need to sanitize the content so that when it is retrieved it is XSS free.
How do you guys manage sanitizing user input in your applications? Are there any libraries you have found exceptionally helpful in the process? Would it be beneficial to create a Component that can be configured and used to sanitize input?