(PHP 8 >= 8.4.0)
Represens an HTML document.
$path
,
int
$options
= 0
,
?
string
$overrideEncoding
=
null
):
Dom\HTMLDocument
$source
,
int
$options
= 0
,
?
string
$overrideEncoding
=
null
):
Dom\HTMLDocument
Note : The DOM extension uses UTF-8 encoding when worquing with methods or properties. The parser methods auto-detect the encoding or allow the caller to specify an encoding.