Skip to main content

Document-1

Document: {
(): Document;
prototype: Document;
parseHTMLUnsafe: Document;
};

Type Declaration

Returns

Document

prototype

prototype: Document;

parseHTMLUnsafe()

parseHTMLUnsafe(html): 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.

MDN Reference

Parameters

ParameterType
htmlstring

Returns

Document