Re:Element: SetHTML() Method on MDN
by padjo on Wednesday October 22, 2025 @05:59PM
(#45675693)
Sanitize as close as possible to where it is used is usually best, then you don’t have to keep track of what’s sanitized and what’s not sanitized for very long.
(Especially important if sanitation is not idempotent!)
(Especially important if sanitation is not idempotent!)