Dom\HTMLDocument::saveHtmlSerializes the document as an HTML string Description
public string Dom\HTMLDocument::saveHtml(Dom\Nodenull
$node = null)Serializes the document as an HTML string. Parameters
Return ValuesThe serialized HTML document string in the current document encoding. Errors/Exceptions
ExamplesExample #1 Dom\HTMLDocument::saveHtml example Serializes a document to an HTML string. The above example will output: <!DOCTYPE html><html><head></head><body><p>Hello, world!</p></body></html> See Also
|