ThinkSSL🔒 一键申购 5分钟快速签发 30天无理由退款 购买更放心 广告
Tidy是Tidy HTML清理和修复实用程序的绑定,它使您不仅可以清理和处理HTML,XHTML和XML文档,还可以遍历文档树,包括其中包含嵌入式脚本语言(例如PHP或ASP)的树。使用面向对象的构造 此扩展与PHP 5及更高版本绑定在一起,默认关闭,需要手动启用 * [预定义常量](https://www.php.net/manual/en/tidy.constants.php) * [例子](https://www.php.net/manual/en/tidy.examples.php) * [Tidy的例子](https://www.php.net/manual/en/tidy.examples.basic.php) * [Tidy](https://www.php.net/manual/en/class.tidy.php)—Tidy类 * [tidy :: body](https://www.php.net/manual/en/tidy.body.php)—返回从tidy解析树的标记开始的tidyNode对象 * [tidy :: cleanRepair](https://www.php.net/manual/en/tidy.cleanrepair.php)—对已解析的标记执行配置的清理和修复操作 * [tidy :: \_\_ construct](https://www.php.net/manual/en/tidy.construct.php)—构造一个新的整洁对象 * [tidy :: diagnose](https://www.php.net/manual/en/tidy.diagnose.php)—在已解析和已修复的标记上运行配置的诊断 * [tidy :: $ errorBuffer](https://www.php.net/manual/en/tidy.props.errorbuffer.php)—返回在解析指定文档时发生的警告和错误 * [tidy :: getConfig](https://www.php.net/manual/en/tidy.getconfig.php)—获取当前的Tidy配置 * [tidy :: getHtmlVer](https://www.php.net/manual/en/tidy.gethtmlver.php)—获取指定文档的检测到的HTML版本 * [tidy :: getOpt](https://www.php.net/manual/en/tidy.getopt.php)—返回整洁文档的指定配置选项的值 * [tidy :: getOptDoc](https://www.php.net/manual/en/tidy.getoptdoc.php)—返回给定选项名称的文档 * [tidy :: getRelease](https://www.php.net/manual/en/tidy.getrelease.php)—获取Tidy库的发布日期(版本) * [tidy :: getStatus](https://www.php.net/manual/en/tidy.getstatus.php)—获取指定文档的状态 * [tidy :: head](https://www.php.net/manual/en/tidy.head.php)—返回从tidy解析树的标记开始的tidyNode对象 * [tidy :: html](https://www.php.net/manual/en/tidy.html.php)—从tidy解析树的标记开始返回tidyNode对象 * [tidy :: isXhtml](https://www.php.net/manual/en/tidy.isxhtml.php)—指示文档是否为XHTML文档 * [tidy :: isXml](https://www.php.net/manual/en/tidy.isxml.php)—指示文档是否为通用(非HTML / XHTML)XML文档 * [tidy :: parseFile](https://www.php.net/manual/en/tidy.parsefile.php)—解析文件或URI中的标记 * [tidy :: parseString](https://www.php.net/manual/en/tidy.parsestring.php)—解析存储在字符串中的文档 * [tidy :: repairFile](https://www.php.net/manual/en/tidy.repairfile.php)—修复文件并以字符串形式返回 * [tidy :: repairString](https://www.php.net/manual/en/tidy.repairstring.php)—使用可选提供的配置文件修复字符串 * [tidy :: root](https://www.php.net/manual/en/tidy.root.php)—返回一个tidyNode对象,该对象代表整洁的解析树的根 * [tidyNode](https://www.php.net/manual/en/class.tidynode.php)— tidyNode类 * [tidyNode :: \_\_ construct](https://www.php.net/manual/en/tidynode.construct.php)—禁止直接实例化的私有构造函数 * [tidyNode :: getParent](https://www.php.net/manual/en/tidynode.getparent.php)—返回当前节点的父节点 * [tidyNode :: hasChildren](https://www.php.net/manual/en/tidynode.haschildren.php)—检查节点是否有子节点 * [tidyNode :: hasSiblings](https://www.php.net/manual/en/tidynode.hassiblings.php)—检查节点是否有兄弟姐妹 * [tidyNode :: isAsp](https://www.php.net/manual/en/tidynode.isasp.php)—检查此节点是否为ASP * [tidyNode :: isComment](https://www.php.net/manual/en/tidynode.iscomment.php)—检查节点是否代表评论 * [tidyNode :: isHtml](https://www.php.net/manual/en/tidynode.ishtml.php)—检查节点是否为HTML文档的一部分 * [tidyNode :: isJste](https://www.php.net/manual/en/tidynode.isjste.php)—检查此节点是否为JSTE * [tidyNode :: isPhp](https://www.php.net/manual/en/tidynode.isphp.php)—检查节点是否为PHP * [tidyNode :: isText](https://www.php.net/manual/en/tidynode.istext.php)—检查节点是否表示文本(无标记) ***** * [Tidy函数](https://www.php.net/manual/en/ref.tidy.php) * [ob\_tidyhandler](https://www.php.net/manual/en/function.ob-tidyhandler.php)— ob\_start回调函数,用于修复缓冲区 * [tidy\_access\_count](https://www.php.net/manual/en/function.tidy-access-count.php)—返回指定文档遇到的Tidy可访问性警告的数量 * [tidy\_config\_count](https://www.php.net/manual/en/function.tidy-config-count.php)—返回指定文档遇到的Tidy配置错误数 * [tidy\_error\_count](https://www.php.net/manual/en/function.tidy-error-count.php)—返回指定文档遇到的整洁错误数 * [tidy\_get\_output](https://www.php.net/manual/en/function.tidy-get-output.php)—返回表示已解析的整洁标记的字符串 * [tidy\_warning\_count](https://www.php.net/manual/en/function.tidy-warning-count.php)—返回指定文档遇到的整洁警告数