Source code
Revision control
Copy as Markdown
Other Tools
[
Exposed=Window,
SecureContext
] interface Sanitizer {
constructor(optional SanitizerConfig sanitizerConfig = {});
DocumentFragment sanitize((DocumentFragment or Document) input);
};
dictionary SanitizerConfig {
sequence<DOMString> allowElements;
sequence<DOMString> blockElements;
sequence<DOMString> dropElements;
sequence<DOMString> allowAttributes;
sequence<DOMString> dropAttributes;
};