In this video you will learn how to use the Trusted Types header and how it can solve all your XSS problems.
https://developer.mozilla.org/en-US/d...
We'll also talk a little about the new DOM API, which allows us to sanitize all the strings we insert into the DOM.
https://developer.mozilla.org/en-US/d...