removeUnsafe

The removeUnsafe() method of the Sanitizer interface configures the sanitizer so that it will remove all elements and attributes that are considered XSS-unsafe by the browser.

MDN Reference