How to properly validate and sanitize URL input using express-validator in an Express.js application?
I am working on an Express.js project where I need to validate and sanitize user inputs for creating menu and submenu items. I am using express-validator for validation. However, I am facing an issue where the URL input is being escaped and stored incorrectly in my database (e.g., http:// becomes http://).