Skip to content

Node.js based forum software built for the modern web

feat(email): don't escape html in notification bodies. (#7042)

ohd7c55bc3f7a7
diff --git a/src/notifications.js b/src/notifications.js
index 69c9e89848..0e6b6865da 100644
--- a/src/notifications.js
+++ b/src/notifications.js
@@ -245,7 +245,7 @@ function pushToUids(uids, notification, callback) {
path: notification.path,
subject: utils.stripHTMLTags(notification.subject || '[[notifications:new_notification_from, ' + meta.config.title + ']]'),
intro: utils.stripHTMLTags(notification.bodyShort),
- body: utils.stripHTMLTags(notification.bodyLong || ''),
+ body: notification.bodyLong || '',
notification: notification,
showUnsubscribe: true,
}, next);