Exemples
tidy::body
Tidy
PHP Manual
La classe
Tidy
Introduction
Une balise HTML, telle que détectée par tidy.
Synopsis de la classe
Tidy
{
/* Propriétés */
string
$errorBuffer
;
/* Méthodes */
tidyNode
tidy::body
(
void
)
bool
tidy::cleanRepair
(
void
)
tidy
tidy::__construct
([
string
$filename
[,
mixed
$config
[,
string
$encoding
[,
bool
$use_include_path
]]]] )
bool
tidy::diagnose
(
void
)
array
tidy::getConfig
(
void
)
int
tidy::getHtmlVer
(
void
)
mixed
tidy::getOpt
(
string
$option
)
string
tidy::getOptDoc
(
string
$optname
)
string
tidy::getRelease
(
void
)
int
tidy::getStatus
(
void
)
tidyNode
tidy::head
(
void
)
tidyNode
tidy::html
(
void
)
bool
tidy::isXhtml
(
void
)
bool
tidy::isXml
(
void
)
bool
tidy::parseFile
(
string
$filename
[,
mixed
$config
[,
string
$encoding
[,
bool
$use_include_path
= false
]]] )
bool
tidy::parseString
(
string
$input
[,
mixed
$config
[,
string
$encoding
]] )
string
tidy::repairFile
(
string
$filename
[,
mixed
$config
[,
string
$encoding
[,
bool
$use_include_path
= false
]]] )
string
tidy::repairString
(
string
$data
[,
mixed
$config
[,
string
$encoding
]] )
tidyNode
tidy::root
(
void
)
}
Propriétés
errorBuffer
Les dernières erreurs et alertes de TidyLib
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::getConfig
— Lit la configuration Tidy courante
tidy::htmlver
— 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
Exemples
tidy::body
Tidy
PHP Manual