email: skip html to markdown if no html
This commit is contained in:
@@ -230,6 +230,10 @@ class Email extends Entity
|
||||
return $this->getFromContainer(self::ATTR_BODY_PLAIN);
|
||||
}
|
||||
|
||||
if (!$this->isHtml()) {
|
||||
return $this->getBody();
|
||||
}
|
||||
|
||||
$body = $this->getBody() ?: '';
|
||||
|
||||
return EmailUtil::stripHtml($body) ?: null;
|
||||
|
||||
Reference in New Issue
Block a user