Tidy tidy 클래스

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


소개

Tidy에서 감지한 HTML 파일의 HTML 노드입니다.


클래스 개요

                  
class tidy {

  /* Properties */
  public ?string $errorBuffer = null;
  public ?string $value = null;

  /* Methods */
  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
  tidy_get_error_buffer(tidy $tidy): string|false
  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
  tidy_parse_file(
      string $filename,
      array|string|null $config = null,
      ?string $encoding = null,
      bool $useIncludePath = false
  ): tidy|false
  public parseString(string $string, array|string|null $config = null, ?string $encoding = null): bool
  tidy_parse_string(string $string, array|string|null $config = null, ?string $encoding = null): tidy|false
  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
}
                  
                

Properties

value
주변 태그를 포함한 노드의 HTML 표현입니다.

목차

  • tidy::body — Returns a tidyNode object starting from the <body> tag of the tidy parse tree
  • tidy::cleanRepair — 구문 분석된 마크업에 대해 구성된 정리 및 복구 작업 실행
  • tidy::__construct — 새로운 Tidy 객체를 생성합니다.
  • tidy::diagnose — 구문 분석 및 복구된 마크업에 대해 구성된 진단 실행
  • tidy::$errorBuffer — 지정된 문서를 구문 분석하여 발생한 경고 및 오류를 반환합니다.
  • tidy::getConfig — 현재 Tidy 구성 가져오기
  • tidy::getHtmlVer — 지정된 문서에 대해 감지된 HTML 버전 가져오기
  • tidy::getOpt — tidy 문서에 대해 지정된 구성 옵션의 값을 반환합니다.
  • tidy::getOptDoc — 주어진 옵션 이름에 대한 문서를 반환합니다
  • tidy::getRelease — Tidy 라이브러리의 출시일(버전) 가져오기
  • tidy::getStatus — 지정된 문서의 상태 가져오기
  • tidy::head — Returns a tidyNode object starting from the <head> tag of the tidy parse tree
  • tidy::html — Returns a tidyNode object starting from the <html> tag of the tidy parse tree
  • tidy::isXhtml — 문서가 XHTML 문서인지 여부를 나타냅니다.
  • tidy::isXml — Indicates if the document is a generic (non HTML/XHTML) XML document
  • tidy::parseFile — 파일 또는 URI의 마크업 구문 분석
  • tidy::parseString — 문자열에 저장된 문서 구문 분석
  • tidy::repairFile — 파일을 복구하고 문자열로 반환
  • tidy::repairString — 선택적으로 제공된 구성 파일을 사용하여 문자열 복구
  • tidy::root — Returns a tidyNode object representing the root of the tidy parse tree