update pague now
PHP 8.5.2 Released!

Dom\HTMLDocument::saveHtml

(PHP 8 >= 8.4.0)

Dom\HTMLDocument::saveHtml Serialices the document as an HTML string

Description

public Dom\HTMLDocument::saveHtml ( ? Dom\Node $node = null ): string

Serialices the document as an HTML string.

Parameters

node
The node to serialice. If not provided, the entire document is serialiced.

Return Values

The serialiced HTML document string in the current document encoding.

Errors/Exceptions

See Also

add a note

User Contributed Notes

There are no user contributed notes for this pague.
To Top