Goodbye innerHTML, Hello setHTML
Goodbye innerHTML, Hello setHTML
The new .setHTML() method in JavaScript, part of the Sanitizer API, can be a one-to-one replacement for .innerHTML(), making sites more secure from XSS attacks. I think that’s pitch-perfect feature branding from Mozilla on this:...
Lire la suite