I am using libtidy with php. I am using xampp and it shows that tidy support is enabled. But when i use it in my code then it shows the following warning
repairString() [function.repairString]: Could not load configuration file tidy-file.php
i also tried using the object-oriented version but i again got the warning
tidy_repair_string() [function.tidy-repair-string]: Could not load configuration file tidy-file.php
i have kept the tidy code in a separate file called tidy-file.php
. it looks like this
$options = array("output-xhtml" => true,"clean" => true, "drop-proprietary-attributes" => true,"drop-font-tags" => true,"drop-empty-paras" => true,"hide-comments" => true);
function getXHTML($html)
{
$xhtml=tidy_repair_string($html,$options);
return $xhtml;
}
what can be wrong