La classe tidy

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

Introduction

Une balise HTML, telle que détectée par tidy.

Synopsis de la classe

tidy {
/* Propriétés */
public string $errorBuffer;
/* Méthodes */
public body ( void ) : tidyNode
public cleanRepair ( void ) : bool
public __construct ([ string $filename [, mixed $config [, string $encoding [, bool $use_include_path ]]]] )
public diagnose ( void ) : bool
public getConfig ( void ) : array
public getHtmlVer ( void ) : int
public getOpt ( string $option ) : mixed
public getOptDoc ( string $optname ) : string
public getRelease ( void ) : string
public getStatus ( void ) : int
public head ( void ) : tidyNode
public html ( void ) : tidyNode
public isXhtml ( void ) : bool
public isXml ( void ) : bool
public parseFile ( string $filename [, mixed $config [, string $encoding [, bool $use_include_path = FALSE ]]] ) : bool
public parseString ( string $input [, mixed $config [, string $encoding ]] ) : bool
public repairFile ( string $filename [, mixed $config [, string $encoding [, bool $use_include_path = FALSE ]]] ) : string
public repairString ( string $data [, mixed $config [, string $encoding ]] ) : string
public root ( void ) : tidyNode
}

Sommaire

  • tidy::body — Retourne un objet TidyNode, commencé à partir de la balise <body>
  • tidy::cleanRepair — Effectue les opérations de nettoyage et de réparation préparées pour un fichier HTML
  • tidy::__construct — Construit un nouvel objet tidy
  • tidy::diagnose — Établit le diagnostic pour le document analysé et réparé
  • tidy::$errorBuffer — Retourne les alertes et erreurs qui sont survenues lors de l'analyse du document
  • tidy::getConfig — Lit la configuration Tidy courante
  • tidy::getHtmlVer — Détecte le version du code HTML utilisée dans un document
  • Tidy::getopt — Retourne la valeur de l'option de configuration Tidy
  • tidy::getOptDoc — Retourne la documentation pour le nom de l'option donnée
  • tidy::getRelease — Retourne la date de publication (version) de la bibliothèque Tidy
  • tidy::getStatus — Retourne le statut du document spécifié
  • tidy::head — Retourne un objet tidyNode à partir de la balise <head>
  • tidy::html — Retourne un objet tidyNode commençant à la balise <html>
  • tidy::isXhtml — Indique si le document est un document XHTML
  • tidy::isXml — Indique si le document est un document XML générique (non HTML/XHTML)
  • tidy::parseFile — Analyse les balises d'un fichier ou d'une URI
  • tidy::parseString — Analyse un document HTML contenu dans une chaîne
  • tidy::repairFile — Répare un fichier et le renvoie en tant que chaîne
  • tidy::repairString — Répare une chaîne HTML en utilisant un fichier de configuration optionnel
  • tidy::root — Retourne un objet tidyNode représentant la racine du document HTML