FluidTYPO3\Vhs\ViewHelpers\Format\TidyViewHelper::render PHP Method

render() public method

Trims content, then trims each line of content
public render ( string $content = null, string $encoding = 'utf8' ) : string
$content string
$encoding string
return string
    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);
    }
TidyViewHelper