TrustedScriptURL

The TrustedScriptURL interface of the Trusted Types API represents a string that a developer can insert into an injection sink that will parse it as a URL of an external script.

MDN Reference

Functions

Link copied to clipboard
fun toJSON(): String

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