牛牛在线工具

tidy::getOptDoc()

收录 8868 个 PHP 函数,含用途说明与用法示例。

tidy::getOptDoc()

获取 Tidy 扩展库的选项文档

函数名称:tidy::getOptDoc() 适用版本:PHP 5, PHP 7 函数描述: tidy::getOptDoc() 函数用于获取 Tidy 扩展库的选项文档。 语法: string tidy::getOptDoc( void ) 参数: 该函数没有参数。 返回值: 返回一个字符串,包含 Tidy 扩展库的选项文档。 示例: <?php // 创建一个 Tidy 对象 $tidy = new tidy(); // 获取 Tidy 扩展库的选项文档 $optDoc = $tidy->getOptDoc(); // 输出选项文档 echo $optDoc; ?> 输出结果: 以下是示例输出的一部分: Tidy Configuration Options ========================= Tidy configuration options control the behavior of Tidy. They can be set using the `tidy_setopt()` function or by setting the equivalent option in the Tidy configuration file. The following table lists all the configuration options supported by Tidy. Name: ascii-chars Type: bool Default: no Description: Replaces non ASCII characters with HTML entities. Name: bare Type: bool Default: no Description: Outputs just the bare minimum. Name: clean ... 注意事项: 该函数需要 Tidy 扩展库的支持,因此在使用之前需要确保已经安装了 Tidy 扩展库。 该函数返回的选项文档字符串包含了 Tidy 扩展库所有支持的配置选项的详细说明,可以根据需要进行配置。 可以将选项文档输出到浏览器或保存到文件中,以供参考和查阅。