bonjour a tous
j ai un pb avec tidy
je l ai installe correctement et kan je test avec le code qui suis j ai un message d' erreur qui est le suivant
Fatal error: Cannot instantiate non-existent class: tidy in nonfichier
le code :
<?php
ob_start();
?>
<html>Un document html</html>
<?
$html = ob_get_clean();
// Specify configuration
$config = array(
'indent' => true,
'output-xhtml' => true,
'wrap' => 200);
// Tidy
$tidy = new tidy;
$tidy->parseString($html, $config, 'utf8');
$tidy->cleanRepair();
// Output
echo $tidy;
?>
merci
Poste le Tuesday 22 March 2005 15:11:49