diff -u b/content_moderation_notifications.module b/content_moderation_notifications.module --- b/content_moderation_notifications.module +++ b/content_moderation_notifications.module @@ -54,8 +54,8 @@ $context = $params['context']; - $subject = PlainTextOutput::renderFromHtml($token_service->replace($params['subject'], $context, ['sanitize' => FALSE, 'clear' => TRUE])); - $body = $token_service->replace($params['message'], $context, ['sanitize' => FALSE, 'clear' => TRUE]); + $subject = PlainTextOutput::renderFromHtml($token_service->replace($params['subject'], $context, ['clear' => TRUE])); + $body = $token_service->replace($params['message'], $context, ['clear' => TRUE]); $message['subject'] = str_replace(["\r", "\n"], '', $subject); $message['body'][] = Markup::create($body);