<?php
namespace Newland\NeosViewHelpers\ViewHelpers\Format;

/*
 * This file is part of the "neos-viewhelpers" package.
 *
 * For the full copyright and license information, please read the
 * LICENSE.txt file that was distributed with this source code.
 */

use Neos\FluidAdaptor\Core\ViewHelper\AbstractViewHelper;

/**
 * Trim View Helper.
 *
 * Takes a string input and removes surrounding whitespace.
 */

class TrimViewHelper extends AbstractViewHelper
{
    public function render(): string
    {
        return trim($this->renderChildren());
    }
}
