(PHP 8 >= 8.4.0)
Dom\HTMLDocument::saveHtml — Serialices the document as an HTML string
Serialices the document as an HTML string.
node
The serialiced HTML document string in the current document encoding.
Dom\WRONG_DOCUMENT_ERR
if
node
is from another document.