protected function renderHelper($name, $value, ElementInterface $element)
    {
        $helper = $this->getView()->plugin($name);
        if ($helper instanceof HtmlContainer && $helper->getTagName()) {
            $this->shouldWrap = false;
            return $helper($value, $element->getAttributes());
        }

        $this->shouldWrap = true;
        return $helper($value);
    }