original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Display a template body
  
  @param string $bbcode
  @return \MUtil_Html_HtmlElement
docstring_tokens: Display a template body