Grilled Cheese

ExploreLog inSign up
Terms of UsePrivacy PolicyCommunity StandardsHelpGet the app

Grilled Cheese is a product of Village Compute

Version devBuilt at: 2026-12-03 22:42:33 EST

PhotosVideosAllPeople
LatestRanked
Load more
@digitalmatters.bsky.socialNov 20, 2026, 7:39 PM

setHTML and the HTML Sanitizer API: A Safer Replacement for innerHTML

The HTML Sanitizer API gives browsers a built-in method, Element.setHTML(), that inserts HTML into a page and strips…

http://digitalmatters.me/web-design/html-sanitizer-api-sethtml/

#Front-End_Development #JavaScript #Security

digitalmatters.mesetHTML and the HTML Sanitizer API: A Safer Replacement for innerHTMLThe HTML Sanitizer API gives browsers a built-in method, Element.setHTML(), that inserts HTML into a page and strips scripts and other unsafe markup first. It works in Chrome, Edge and Firefox as of November 2026. Safari does not support it yet. That matters for anyone who builds CMS themes, blocks or widgets. Cross-site scripting (XSS) bugs often start with one line: …