From d4b39cb1f4a44e23c0d774c716fd32f2c6fb3b65 Mon Sep 17 00:00:00 2001 From: Vlad Date: Sun, 6 Nov 2016 20:04:18 -0500 Subject: [PATCH] - Replaces   with spaces in text blocks --- lib/Newsletter/Renderer/Blocks/Text.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Newsletter/Renderer/Blocks/Text.php b/lib/Newsletter/Renderer/Blocks/Text.php index 59ce320a1c..761ac906bb 100644 --- a/lib/Newsletter/Renderer/Blocks/Text.php +++ b/lib/Newsletter/Renderer/Blocks/Text.php @@ -6,6 +6,9 @@ use MailPoet\Newsletter\Renderer\StylesHelper; class Text { static function render($element) { $html = $element['text']; + // replace   with spaces + $html = str_replace(' ', ' ', $html); + $html = str_replace('\xc2\xa0', ' ', $html); $html = self::convertBlockquotesToTables($html); $html = self::convertParagraphsToTables($html); $html = self::styleLists($html);