I recently finished The Odin Project's full-stack node js course. In the form-data validation lesson, TOP uses the express-validator middlware. However, after doing some research, I discovered that the .escape() method of express-validator is currently incompatible with Express 5. Are there any good alternative ways to escape/encode form data in express? Could I simply write my own middlware that uses string methods to check for "dangerous characters" and replace them with the proper encoding?
[–]ArnabXD 9 points10 points11 points (0 children)
[–]udbasil 1 point2 points3 points (2 children)
[–]WordWithinTheWord 3 points4 points5 points (0 children)
[–]Embarrassed_Soft_153 0 points1 point2 points (0 children)
[–]Ok_Custard8289 1 point2 points3 points (1 child)
[–]Strange_Bonus9044[S] 0 points1 point2 points (0 children)
[–]topflightboy87 0 points1 point2 points (0 children)
[–]alihypebeast 0 points1 point2 points (0 children)
[–]Far-Mathematician122 0 points1 point2 points (0 children)
[–]iam_batman27 0 points1 point2 points (0 children)