code: public function renderTag($tagName, $content, $tagType = Tag::TYPE_BLOCK, array $options = array())
      {
          $options = $this->createResolver()->resolve($options);
  
          $tag = new Tag($tagName);
          $tag->setType($tagType);
          $tag->setText($content);
          $tag->setAttributes($options['attr']);
  
          $this->getEmitter()->emit('tag', [$tag]);
  
          return $tag->render();
      }
docs: {@inheritdoc}