Classes/Service/Rendering.php
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);
    }
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);
    }
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 ) ; }
Renders the content of a RTE field.

@param string $richText
@return string
Renders the content of a RTE field .