From 928d37c25fa0d13d45c61e12dd0f5e87b7ec8c23 Mon Sep 17 00:00:00 2001 From: Geoffray Date: Sat, 1 Nov 2014 09:35:31 +0100 Subject: [PATCH] minor regex optimization to convert br to eol --- src/Fetch/Message.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Fetch/Message.php b/src/Fetch/Message.php index abf6abd..212f5fd 100755 --- a/src/Fetch/Message.php +++ b/src/Fetch/Message.php @@ -351,7 +351,7 @@ class Message } } else { if (!isset($this->plaintextMessage) && isset($this->htmlMessage)) { - $output = preg_replace('/\/i', PHP_EOL, trim($this->htmlMessage) ); + $output = preg_replace('/\s*\/i', PHP_EOL, trim($this->htmlMessage) ); $output = strip_tags($output); return $output;