new Dom()
Class constructor
new Dom(string $code, string $type = 'HTML')
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $code * | string |
– | XML or HTML code |
| $type | string |
'HTML' |
Document type ('HTML' or 'XML') |