TrustedScript

open class TrustedScript(source)

The TrustedScript interface of the Trusted Types API represents a string with an uncompiled script body that a developer can insert into an injection sink that might execute the script.

MDN Reference

Functions

Link copied to clipboard
fun toJSON(): String

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