roundcubemail/program/lib/Roundcube/rcube_enriched.php
public static function to_html($body)
    {
        $body = str_replace('<<','&lt;',$body);
        $body = self::convert_newlines($body);
        $body = str_replace("\n", '<br>', $body);
        $body = self::convert_formatting($body);
        $body = self::convert_color($body);
        $body = self::convert_font($body);
        $body = self::convert_excerpt($body);
        //$body = nl2br($body);

        return $body;
    }
public static function to_html($body)
    {
        $body = str_replace('<<','&lt;',$body);
        $body = self::convert_newlines($body);
        $body = str_replace("\n", '<br>', $body);
        $body = self::convert_formatting($body);
        $body = self::convert_color($body);
        $body = self::convert_font($body);
        $body = self::convert_excerpt($body);
        //$body = nl2br($body);

        return $body;
    }
public static function to_html ( $ body ) { $ body = str_replace ( '<<' , '&lt;' , $ body ) ; $ body = self :: convert_newlines ( $ body ) ; $ body = str_replace ( "\n" , '<br>' , $ body ) ; $ body = self :: convert_formatting ( $ body ) ; $ body = self :: convert_color ( $ body ) ; $ body = self :: convert_font ( $ body ) ; $ body = self :: convert_excerpt ( $ body ) ; //$body = nl2br($body); return $ body ; }
Converts Enriched text into HTML format

@param string $body Enriched text

@return string HTML text
Converts Enriched text into HTML format