public function bbToHtml($bbcode)
    {
        if (empty($bbcode)) {
            $em = \MUtil_Html::create('em');
            $em->raw($this->_('&laquo;empty&raquo;'));

            return $em;
        }

        $text = \MUtil_Markup::render($bbcode, 'Bbcode', 'Html');

        $div = \MUtil_Html::create('div', array('class' => 'mailpreview'));
        $div->raw($text);

        return $div;
    }
public function bbToHtml($bbcode)
    {
        if (empty($bbcode)) {
            $em = \MUtil_Html::create('em');
            $em->raw($this->_('&laquo;empty&raquo;'));

            return $em;
        }

        $text = \MUtil_Markup::render($bbcode, 'Bbcode', 'Html');

        $div = \MUtil_Html::create('div', array('class' => 'mailpreview'));
        $div->raw($text);

        return $div;
    }
public function bbToHtml ( $ bbcode ) { if ( empty ( $ bbcode ) ) { $ em = \ MUtil_Html :: create ( 'em' ) ; $ em -> raw ( $ this -> _ ( '&laquo;empty&raquo;' ) ) ; return $ em ; } $ text = \ MUtil_Markup :: render ( $ bbcode , 'Bbcode' , 'Html' ) ; $ div = \ MUtil_Html :: create ( 'div' , array ( 'class' => 'mailpreview' ) ) ; $ div -> raw ( $ text ) ; return $ div ; }
Display a template body

@param string $bbcode
@return \MUtil_Html_HtmlElement
Display a template body