8.123.45 tidy_repair_string()
Répare une chaîne HTML en utilisant un fichier de configuration optionnel
[ Exemples avec tidy_repair_string ] PHP 5
string
tidy_repair_string (
string
data
,
mixed
config
,
string
encoding
)
tidy_repair_string
répare la chaîne fournie.
Exemple avec tidy_repair_string |
<?php ob_start(); ?>
<html> <head> <title>test</title> </head> <body> <p>error</i> </body> </html>
<?php
$buffer = ob_get_clean(); $tidy = tidy_repair_string($buffer);
echo $tidy; ?>
|
Note |
Les paramètres optionnels
config
et
encoding
ont été ajoutés en Tidy 2.0.
|
Voir aussi
tidy_parse_file
,
tidy_parse_string
et
tidy_repair_file
.
|