code: public function renderRichText($richText)
      {
          if (strlen($richText) < 1) {
              return '';
          }
  
          $templatePath = $this->getTemplatePathAndFilename('RichText');
  
          $view = $this->createView($templatePath);
          $view->assign('richText', $richText);
          return $view->render($templatePath);
      }
docs: Renders the content of a RTE field.
  
  @param string $richText
  @return string