isHTML method

bool isHTML(
  1. JSAny? value
)

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

Note: The purpose of the functions isHTML(), TrustedTypePolicyFactory.isScript, and TrustedTypePolicyFactory.isScriptURL is to check if the object is a valid TrustedType object, created by a configured policy.

Implementation

external bool isHTML(JSAny? value);