(PHP 8 >= 8.4.0)
Dom\HTMLDocument::createFromFile — Analiza un documento HTML a partir de un fichero
$path
, int $options
= 0, ?string $overrideEncoding
= null
): Dom\HTMLDocumentAnaliza un documento HTML a partir de un fichero, según la norma vigente.
path
options
Bitwise OR
of the libxml option constants.
Dom\HTML_NO_DEFAULT_NS
to disable the use of the HTML namespace and the template element.
This should only be used if the implications are properly understood.
overrideEncoding
El documento analizado en forma de una instancia de Dom\HTMLDocument.
path
contiene bytes nulos o contiene
"%00"
.
options
contains an invalid option.
overrideEncoding
is an unknown encoding.
Nota: Whitespace in the
html
andhead
tags is not considered significant and may lose formatting.