From 85015544ae7b45b46b5788747dc4314f15dc3c45 Mon Sep 17 00:00:00 2001 From: indiri69 Date: Fri, 23 Aug 2002 16:45:41 +0000 Subject: [PATCH] Change   > < to they're plain text equivalents. Now when we view text/html as plaintext it doesn't look as bad. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3438 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/mime.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/functions/mime.php b/functions/mime.php index 7704e930..896933fe 100644 --- a/functions/mime.php +++ b/functions/mime.php @@ -154,7 +154,7 @@ function mime_print_body_lines ($imap_stream, $id, $ent_id, $encoding) { // Don't kill the connection if the browser is over a dialup // and it would take over 30 seconds to download it. - // donŽ´t call set_time_limit in safe mode. + // don´t call set_time_limit in safe mode. if (!ini_get("safe_mode")) { set_time_limit(0); } @@ -349,9 +349,14 @@ function formatBody($imap_stream, $message, $color, $wrap_at, $ent_num, $id, $ma // them here if ($body_message->header->type1 == 'html') { if ( $show_html_default <> 1 ) { + $entity_conv = array(' ' => ' ', + '>' => '>', + '<' => '<'); $body = strip_tags( $body ); - translateText($body, $wrap_at, - $body_message->header->getParameter['charset']); + $body = strtr($body, $entity_conv); + $body = trim($body); + translateText($body, $wrap_at, + $body_message->header->getParameter['charset']); } else { $body = magicHTML( $body, $id, $message, $mailbox ); } -- 2.25.1