|
|
@ -270,6 +270,10 @@ class rcube_text2html
|
|
|
|
if (empty($table)) {
|
|
|
|
if (empty($table)) {
|
|
|
|
$table = get_html_translation_table(HTML_SPECIALCHARS);
|
|
|
|
$table = get_html_translation_table(HTML_SPECIALCHARS);
|
|
|
|
unset($table['?']);
|
|
|
|
unset($table['?']);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// replace some whitespace characters
|
|
|
|
|
|
|
|
$table["\r"] = '';
|
|
|
|
|
|
|
|
$table["\t"] = ' ';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// skip signature separator
|
|
|
|
// skip signature separator
|
|
|
@ -277,12 +281,9 @@ class rcube_text2html
|
|
|
|
return '--' . $this->config['space'];
|
|
|
|
return '--' . $this->config['space'];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// replace HTML special characters
|
|
|
|
// replace HTML special and whitespace characters
|
|
|
|
$text = strtr($text, $table);
|
|
|
|
$text = strtr($text, $table);
|
|
|
|
|
|
|
|
|
|
|
|
// replace some whitespace characters
|
|
|
|
|
|
|
|
$text = str_replace(array("\r", "\t"), array('', ' '), $text);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$nbsp = $this->config['space'];
|
|
|
|
$nbsp = $this->config['space'];
|
|
|
|
|
|
|
|
|
|
|
|
// replace spaces with non-breaking spaces
|
|
|
|
// replace spaces with non-breaking spaces
|
|
|
|