There's a laravel package for html purifier, also blade handles some purification.
Dec 4, 2018
5
Level 13
How do you filter/clean user entered data?
I'm curious to know what strategies, techniques, packages do fellow developers use to handle the text or data entered by users?
Apps like forums get lot of user generated content and it's not safe to save it directly to the database.
Someone mentioned on this forum that Laravel automatically cleans the bad stuff but I'm not sure if it actually does.
Looking forward to suggestions. Thank you in advance.
Please or to participate in this conversation.