TrustedHTML

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.

MDN Reference

Functions

Link copied to clipboard
Link copied to clipboard
fun toJSON(): String

The toJSON() method of the TrustedHTML interface returns a JSON representation of the stored data.