The tidy

(PHP 5, PHP 7, PHP 8, PECL tidy >= 0.5.2)

简介

HTML 文件中的 HTML 节点,由 tidy 检测到。

类概要

class tidy {
/* 属性 */
public ?string $errorBuffer = null;
public ?string $value = null;
/* 方法 */
public __construct(
    ?string $filename = null,
    array|string|null $config = null,
    ?string $encoding = null,
    bool $useIncludePath = false
)
public body(): ?tidyNode
public cleanRepair(): bool
public diagnose(): bool
public getConfig(): array
public getHtmlVer(): int
public getOpt(string $option): string|int|bool
public getOptDoc(string $option): string|false
public getRelease(): string
public getStatus(): int
public head(): ?tidyNode
public html(): ?tidyNode
public isXhtml(): bool
public isXml(): bool
public parseFile(
    string $filename,
    array|string|null $config = null,
    ?string $encoding = null,
    bool $useIncludePath = false
): bool
public parseString(string $string, array|string|null $config = null, ?string $encoding = null): bool
public static repairFile(
    string $filename,
    array|string|null $config = null,
    ?string $encoding = null,
    bool $useIncludePath = false
): string|false
public static repairString(string $string, array|string|null $config = null, ?string $encoding = null): string|false
public root(): ?tidyNode
}

属性

value

节点的 HTML 表示,包括周围的标签。

目录

添加笔记

用户贡献笔记

此页面没有用户贡献笔记。
To Top