Skip to content
Snippets Groups Projects
Commit c3f79c85 authored by Ahmed Samir's avatar Ahmed Samir Committed by abdulaziz zaid
Browse files

Issue #3286731 by Ahmed_Samir: HTML emails are not rendered properly

parent c0df8ab6
No related branches found
No related tags found
No related merge requests found
......@@ -76,7 +76,7 @@ function _email_tfa_mail_text($type, $tfa, $language) {
$text = Xss::filter($config->get('subject'));
}
elseif ($type == 'body') {
$text = Xss::filter($config->get('body'));
$text = Xss::filterAdmin($config->get('body'));
}
return Drupal::token()->replace($text, $tfa, [
......
diff --git a/email_tfa.module b/email_tfa.module
index 8f4bed5..cf1b50f 100644
--- a/email_tfa.module
+++ b/email_tfa.module
@@ -76,7 +76,7 @@ function _email_tfa_mail_text($type, $tfa, $language) {
$text = Xss::filter($config->get('subject'));
}
elseif ($type == 'body') {
- $text = Xss::filter($config->get('body'));
+ $text = Xss::filterAdmin($config->get('body'));
}
return Drupal::token()->replace($text, $tfa, [
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment