diff --git a/lib/Newsletter/Renderer/Renderer.php b/lib/Newsletter/Renderer/Renderer.php index 163e14fe87..f201736714 100644 --- a/lib/Newsletter/Renderer/Renderer.php +++ b/lib/Newsletter/Renderer/Renderer.php @@ -191,10 +191,6 @@ class Renderer { $image->src = str_replace(' ', '%20', $image->src); } $template = $template_dom->query('.mailpoet_template'); - // replace all !important tags except for in the body tag - $template->html( - str_replace('!important', '', $template->html()) - ); // encode ampersand $template->html( str_replace('&', '&', $template->html()) diff --git a/lib/Newsletter/Renderer/StylesHelper.php b/lib/Newsletter/Renderer/StylesHelper.php index aa06a7f53a..5dc7150c9c 100644 --- a/lib/Newsletter/Renderer/StylesHelper.php +++ b/lib/Newsletter/Renderer/StylesHelper.php @@ -72,7 +72,7 @@ class StylesHelper { $styles = array_map(function($attribute, $style) use ($ignore_specific_styles) { if (!$ignore_specific_styles || !in_array($attribute, $ignore_specific_styles)) { $style = StylesHelper::applyFontFamily($attribute, $style); - return StylesHelper::translateCSSAttribute($attribute) . ': ' . $style . ' !important;'; + return StylesHelper::translateCSSAttribute($attribute) . ': ' . $style . ';'; } }, array_keys($data[$type]), $data[$type]); return implode('', $styles);