DEV Community

Discussion on: Stop using Array.map() everywhere 🥵

Collapse
 
yankzy profile image
Yankuba Kuyateh

With innerHTML you are vulnerable to XSS attack. Just be aware.

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀

innerText 🔒

Some comments have been hidden by the post's author - find out more