Answer the question
In order to leave comments, you need to log in
Why does tidy::parseString() hang?
I use tidy. Here is a snippet:
$config = [
'indent' => true,
'output-xhtml' => true,
'wrap' => 200
];
var_dump('p1');
if ($this->config['useTidy']) {
// Tidy
$tidy = new tidy;
var_dump('p2');
$tidy->parseString($html, $config, 'utf8');
var_dump('p3');
$tidy->cleanRepair();
var_dump('p4');
$html = $tidy;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question