略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: Dom\HTMLDocument::saveHtml

2025-02-27

Dom\HTMLDocument::saveHtml

(PHP 8 >= 8.4.0)

Dom\HTMLDocument::saveHtmlSerializes the document as an HTML string

说明

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

Serializes the document as an HTML string.

参数

node
The node to serialize. If not provided, the entire document is serialized.

返回值

The serialized HTML document string in the current document encoding.

错误/异常

参见

添加备注

用户贡献的备注

此页面尚无用户贡献的备注。

官方地址:https://www.php.net/manual/en/dom-htmldocument.savehtml.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3