diff --git a/class.phpmailer.php b/class.phpmailer.php index 3999ab64..543fd290 100644 --- a/class.phpmailer.php +++ b/class.phpmailer.php @@ -2543,7 +2543,7 @@ class PHPMailer { $h = new html2text($html); return $h->get_text(); } - return html_entity_decode(trim(strip_tags(preg_replace('/<(head|title|style|script)[^>]*>.*?<\/\\1>/s', '', $html))), ENT_QUOTES, $this->CharSet); + return html_entity_decode(trim(strip_tags(preg_replace('/<(head|title|style|script)[^>]*>.*?<\/\\1>/si', '', $html))), ENT_QUOTES, $this->CharSet); } /**