setDataAttributes

external fun setDataAttributes(allow: Boolean): Boolean(source)

The setDataAttributes() method of the Sanitizer interface sets whether all data-* attributes will be allowed by the sanitizer, or if they must be individually specified.

MDN Reference