- Re-fix handling of html entity strings in plain/text messages
| | |
| | | $out = strtr($str, $encode_arr); |
| | | |
| | | // avoid douple quotation of & |
| | | // commented out, because this breaks displaying of text with entity strings |
| | | // in text messages. |
| | | //$out = preg_replace('/&([A-Za-z]{2,6}|#[0-9]{2,4});/', '&\\1;', $out); |
| | | $out = preg_replace('/&([A-Za-z]{2,6}|#[0-9]{2,4});/', '&\\1;', $out); |
| | | |
| | | return $newlines ? nl2br($out) : $out; |
| | | } |
| | |
| | | $quote_level = $q; |
| | | } |
| | | |
| | | // quote plain text |
| | | $body = Q(join("\n", $a_lines), 'dummy', false); |
| | | $body = join("\n", $a_lines); |
| | | |
| | | // quote plain text (don't use Q() here, to display entities "as is") |
| | | $table = get_html_translation_table(HTML_SPECIALCHARS); |
| | | unset($table['?']); |
| | | $body = strtr($body, $table); |
| | | |
| | | // colorize signature (up to <sig_max_lines> lines) |
| | | $len = strlen($body); |