original_string: public function setHtmlBody($body, $charset = null, $alternative = true)
      {
          if (!$charset) {
              $charset = $this->_charset;
          }
          $this->_htmlBody = new Horde_Mime_Part();
          $this->_htmlBody->setType('text/html');
          $this->_htmlBody->setCharset($charset);
          $this->_htmlBody->setContents($body);
          if ($alternative) {
              $this->setBody(Horde_Text_Filter::filter($body, 'Html2text', array('charset' => $charset, 'wrap' => false)), $charset);
          }
          $this->_base = null;
      }
code: public function setHtmlBody($body, $charset = null, $alternative = true)
      {
          if (!$charset) {
              $charset = $this->_charset;
          }
          $this->_htmlBody = new Horde_Mime_Part();
          $this->_htmlBody->setType('text/html');
          $this->_htmlBody->setCharset($charset);
          $this->_htmlBody->setContents($body);
          if ($alternative) {
              $this->setBody(Horde_Text_Filter::filter($body, 'Html2text', array('charset' => $charset, 'wrap' => false)), $charset);
          }
          $this->_base = null;
      }
code_tokens: public function setHtmlBody ( $ body , $ charset = null , $ alternative = true ) { if ( ! $ charset ) { $ charset = $ this -> _charset ; } $ this -> _htmlBody = new Horde_Mime_Part ( ) ; $ this -> _htmlBody -> setType ( 'text/html' ) ; $ this -> _htmlBody -> setCharset ( $ charset ) ; $ this -> _htmlBody -> setContents ( $ body ) ; if ( $ alternative ) { $ this -> setBody ( Horde_Text_Filter :: filter ( $ body , 'Html2text' , array ( 'charset' => $ charset , 'wrap' => false ) ) , $ charset ) ; } $ this -> _base = null ; }
docstring: Sets the HTML message body text.
  
  @param string $body          The message content.
  @param string $charset       The character set of the message.
  @param boolean $alternative  If true, a multipart/alternative message is
  created and the text/plain part is
  generated automatically. If false, a
  text/html message is generated.
docstring_tokens: Sets the HTML message body text .