What is Nostr?
Stephen Rees-Carter /
npub1wfd…j03a
2024-01-06 11:38:49

Stephen Rees-Carter on Nostr: Let's solve XSS with a bit of CSS! 🤓 Next time you think about reaching for ...

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
Author Public Key
npub1wfdxsym3kgczjyf7xeueruzm4v34z90vsa8a3m2jaxugrqa9j29shaj03a