Ejemplo n.º 1
0
 /**
  * Return the first HTML part of this message
  *
  * @param rcube_message_part &$part    Reference to the part if found
  * @param bool               $enriched Enables checking for text/enriched parts too
  *
  * @return string HTML message part content
  */
 public function first_html_part(&$part = null, $enriched = false)
 {
     if ($this->has_html_part($enriched, $part)) {
         $body = $this->get_part_body($part->mime_id, true);
         if ($part->mimetype == 'text/enriched') {
             $body = rcube_enriched::to_html($body);
         }
         return $body;
     }
 }
Ejemplo n.º 2
0
 /**
  * Test formatting conversion
  * @dataProvider data_formatting
  */
 function test_formatting($enriched, $expected)
 {
     $result = rcube_enriched::to_html($enriched);
     $this->assertSame($expected, $result);
 }
Ejemplo n.º 3
0
function enriched_to_html($data)
{
    return rcube_enriched::to_html($data);
}
Ejemplo n.º 4
0
function enriched_to_html($data)
{
    _deprecation_warning(__FUNCTION__);
    return rcube_enriched::to_html($data);
}