removeElement

external fun removeElement(element: SanitizerElement): Boolean(source)

The removeElement() method of the Sanitizer interface sets the specified element be removed from the output when the sanitizer is used.

MDN Reference