isHTML

fun isHTML(value: JsAny?): Boolean(source)

The isHTML() method of the TrustedTypePolicyFactory interface returns true if it is passed a valid TrustedHTML object.

MDN Reference