Skip to content
Snippets Groups Projects
Commit f4f6aadf authored by andrew farquharson's avatar andrew farquharson
Browse files

replace strip_tags() with htmlspecialchars_decode()

parent 1e05f033
No related branches found
No related tags found
1 merge request!10611Keep user emails plain text
......@@ -336,7 +336,7 @@ public function checkBodyText(): bool {
// Assume the most recent email.
$_emails = $this->drupalGetMails();
$email = end($_emails);
if (strip_tags($email['body']) === $email['body']) {
if (htmlspecialchars_decode($email['body']) === $email['body']) {
return TRUE;
}
return FALSE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment