DOMDocument::saveHTML

DOMDocument::saveHTML

(PHP 5, PHP 7)

DOMDocument::saveHTML Dumps the internal document into a string using HTML formatting

Description

public string DOMDocument::saveHTML ([ DOMNode $node = NULL ] )

Creates an HTML document from the DOM representation. This function is usually called after building a new dom document from scratch as in the example below.

Parameters

node

Optional parameter to output a subset of the document.

登录查看完整内容