public function render($content, array $attribs = [])
    {
        if (isset($attribs['tagName'])) {
            $tagName = $attribs['tagName'];
            unset($attribs['tagName']);
        } else {
            $tagName = $this->getTagName();
        }

        if (!$tagName) {
            return $this->renderContent($content);
        }

        if (!$content && !$this->closeTag) {
            $openTag = trim($this->getOpenTag($tagName, $attribs));
            return substr_replace($openTag, $this->getClosingBracket(), -1);
        }

        return $this->getOpenTag($tagName, $attribs) .
            $this->renderContent($content) .
            $this->getCloseTag($tagName);
    }