PP.htmlToDOM

Syntax

htmlToDOM(html: String, getAllNodes: Boolean, withoutCache: Boolean);

Parameters

html. Markup to be converted to DOM node.

getAllNodes. Indicates if it is necessary to get an array of DOM nodes instead of just one node. If this parameter is set to True the method returns an array of DOM nodes, otherwise it gets only one node. This is an optional parameter, by default its value is not defined.

withoutCache. Indicates whether to cache created nodes. If this parameter is set to True, DOM nodes are cached, otherwise they are not. This is an optional parameter, by default its value is not defined.

Description

The htmlToDOM method converts HTML markup to a DOM node.

Comments

This method returns an HTMLElement value.

Example

The example of use is given in the with description of the static method PP.addClass.

See also:

PP