Skip to content
Snippets Groups Projects
Commit 76e303dd authored by Jay Friendly's avatar Jay Friendly
Browse files

Issue #2971692 by opdavies, git commit -m Issue

parent 21c0409a
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,7 @@ use Drupal\Component\Utility\Xss;
use Drupal\Core\Entity\Display\EntityViewDisplayInterface;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Mail\MailFormatHelper;
use Drupal\Core\Render\Element;
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Url;
......@@ -469,7 +470,7 @@ function private_message_mail($key, &$message, $params) {
$message['from'] = \Drupal::config('system.site')->get('mail');
$message['subject'] = SafeMarkup::checkPlain($message['subject']);
$message['body'][] = Xss::filter($body);
$message['body'][] = MailFormatHelper::htmlToText(Xss::filter($body));
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment