public function render($content = null, $encoding = 'utf8')
{
if (null === $content) {
$content = $this->renderChildren();
}
if (true === $this->hasTidy) {
$tidy = tidy_parse_string($content, [], $encoding);
$tidy->cleanRepair();
return (string) $tidy;
}
throw new \RuntimeException('TidyViewHelper requires the PHP extension "tidy" which is not installed or not loaded.', 1352059753);
}