array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'dom-htmldocument.savehtml.php', 1 => 'Dom\\HTMLDocument::saveHtml', 2 => 'Serializes the document as an HTML string', ), 'up' => array ( 0 => 'class.dom-htmldocument.php', 1 => 'Dom\\HTMLDocument', ), 'prev' => array ( 0 => 'dom-htmldocument.createfromstring.php', 1 => 'Dom\\HTMLDocument::createFromString', ), 'next' => array ( 0 => 'dom-htmldocument.savehtmlfile.php', 1 => 'Dom\\HTMLDocument::saveHtmlFile', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/dom/dom/htmldocument/savehtml.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>
(PHP 8 >= 8.4.0)
Dom\HTMLDocument::saveHtml — Serializes the document as an HTML string
Serializes the document as an HTML string.
nodeThe serialized HTML document string in the current document encoding.
Dom\WRONG_DOCUMENT_ERR if node
  is from another document.