i just found out about this new feature in firefox called `setHtml`! it's basically a safer way to insert html into your pages without risking xss attacks. instead of using the old and risky method with `. innerHTML`, you can now use. setHtml() which sanitizes any untrusted input first before adding stuff.
pretty cool, right? i mean who wants their site hacked anyway
i wonder how widespread this is or if other browsers will follow suit soon. anyone else heard about it?
➡ did u know the old way could let hackers inject malicious scripts just by inserting user data into your page?
let's see more browser makers adopting these kinds of security measures!
found this here:
https://hacks.mozilla.org/2026/02/goodbye-innerhtml-hello-sethtml-stronger-xss-protection-in-firefox-148/