Commit cdadc01b by armab

Update BaseMailer.php

parent a324b26c
......@@ -186,7 +186,7 @@ abstract class BaseMailer extends Component implements MailerInterface, ViewCont
if (isset($text)) {
$message->setTextBody($text);
} elseif (isset($html)) {
$html = preg_replace('|<style[^>]*>(.*)</style>|is', '', $html);
$html = preg_replace('|<style[^>]*>(.*?)</style>|is', '', $html);
$message->setTextBody(strip_tags($html));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment