Laravel Community Tools by Tighten

Kirk Bushell

Joined: 11 years ago
Total tricks: 1
Last trick: 11 years ago

Submitted tricks

This piece of middleware can be applied at a global level, or on a per-route basis. The idea is that instead of polluting your databases with HTML and other potentially damaging data as a result of user input, this middleware will immediately strip all tags from any input, before it gets to validation or saved to a database. The result? A more dependable solution that doesn't require developer memory to implement safe output rules + cleaner data in your database.
kirkbushel... 11 years ago 16423
5.0