| | |
| | | <?php |
| | | |
| | | /* |
| | | /** |
| | | +-----------------------------------------------------------------------+ |
| | | | This file is part of the Roundcube Webmail client | |
| | | | Copyright (C) 2008-2014, The Roundcube Dev Team | |
| | |
| | | if (empty($table)) { |
| | | $table = get_html_translation_table(HTML_SPECIALCHARS); |
| | | unset($table['?']); |
| | | |
| | | // replace some whitespace characters |
| | | $table["\r"] = ''; |
| | | $table["\t"] = ' '; |
| | | } |
| | | |
| | | // skip signature separator |
| | |
| | | return '--' . $this->config['space']; |
| | | } |
| | | |
| | | // replace HTML special characters |
| | | // replace HTML special and whitespace characters |
| | | $text = strtr($text, $table); |
| | | |
| | | // replace some whitespace characters |
| | | $text = str_replace(array("\r", "\t"), array('', ' '), $text); |
| | | |
| | | $nbsp = $this->config['space']; |
| | | |