Let's solve XSS with a bit of CSS! 🤓
Next time you think about reaching for nl2br(), reach for a bit of CSS instead: `white-space: pre-line;`
It'll do the same job without risking XSS sneaking through.
https://securinglaravel.com/p/security-tip-dont-use-nl2br
#Laravel#PHP