The TrustedHTML interface of the Trusted Types API represents a string that a developer can insert into an injection sink that will render it as HTML.
TrustedHTML
MDN Reference
The toJSON() method of the TrustedHTML interface returns a JSON representation of the stored data.
toJSON()