Functions
Link copied to clipboard
The parseHTML() static method of the Document object provides an XSS-safe method to parse and sanitize a string of HTML in order to create a new Document instance.
Link copied to clipboard
external fun parseHTMLUnsafe(html: String, options: ParseHTMLUnsafeOptions = definedExternally): Document
external fun parseHTMLUnsafe(html: TrustedHTML, options: ParseHTMLUnsafeOptions = definedExternally): Document
The parseHTMLUnsafe() static method of the Document object is used to parse HTML input, optionally filtering unwanted HTML elements and attributes, in order to create a new Document instance.