Question

On my local server, this works fine. However, when I try to do this on the production server, the following returns an empty string:

$tidy = new tidy();
$tidy->repairString($html);

$html has actual HTML content before repairing (I checked), but repairString returns an empty string. Does this indicate a configuration error? Is libtidy not properly installed? How can I go about debugging this particular issue?

EDIT: See comments. I've found a very simple way to remove the Tidy dependency, so this question no longer needs an urgent answer. Even so, I'll leave it up for reference.

Was it helpful?

Solution

I realized that I don't actually really need Tidy, so I removed the dependency. That was a sufficient answer for me.

Even so, this question remains up for reference.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top