HTML::__construct()

The constructor.

Table of Contents
  1. Description
  2. Example

Description

HTML::__construct(array|string $value = [], bool $deep = false): self;

This method will be called when you instantiate a HTML class.

Example

$node = new HTML('<div id="foo">bar</div>');
$node = new HTML(['div', 'bar', ['id' => 'foo']]);

HTML::__construct()

The constructor.