Update HTML::purify debug comment formatting
This commit is contained in:
parent
e928063529
commit
62e7d0f40a
1 changed files with 7 additions and 8 deletions
|
@ -1003,20 +1003,19 @@ class HTML
|
||||||
'_blank' => true,
|
'_blank' => true,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
/* Uncomment to debug HTMLPurifier behavior
|
|
||||||
$config->set('Core.CollectErrors', true);
|
// Uncomment to debug HTMLPurifier behavior
|
||||||
$config->set('Core.MaintainLineNumbers', true);
|
//$config->set('Core.CollectErrors', true);
|
||||||
*/
|
//$config->set('Core.MaintainLineNumbers', true);
|
||||||
|
|
||||||
$HTMLPurifier = new \HTMLPurifier($config);
|
$HTMLPurifier = new \HTMLPurifier($config);
|
||||||
|
|
||||||
$text = $HTMLPurifier->purify($text);
|
$text = $HTMLPurifier->purify($text);
|
||||||
|
|
||||||
/** @var \HTMLPurifier_ErrorCollector $errorCollector */
|
/** @var \HTMLPurifier_ErrorCollector $errorCollector */
|
||||||
/* Uncomment to debug HTML Purifier behavior
|
// Uncomment to debug HTML Purifier behavior
|
||||||
$errorCollector = $HTMLPurifier->context->get('ErrorCollector');
|
//$errorCollector = $HTMLPurifier->context->get('ErrorCollector');
|
||||||
var_dump($errorCollector->getRaw());
|
//var_dump($errorCollector->getRaw());
|
||||||
*/
|
|
||||||
|
|
||||||
return $text;
|
return $text;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue