mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 09:06:15 +01:00
feat(email): don't escape html in notification bodies. (#7042)
allows for post replies, etc. to show the formatting of the orginal post, rather than looking garbled. closes #7034
This commit is contained in:
@@ -245,7 +245,7 @@ function pushToUids(uids, notification, callback) {
|
|||||||
path: notification.path,
|
path: notification.path,
|
||||||
subject: utils.stripHTMLTags(notification.subject || '[[notifications:new_notification_from, ' + meta.config.title + ']]'),
|
subject: utils.stripHTMLTags(notification.subject || '[[notifications:new_notification_from, ' + meta.config.title + ']]'),
|
||||||
intro: utils.stripHTMLTags(notification.bodyShort),
|
intro: utils.stripHTMLTags(notification.bodyShort),
|
||||||
body: utils.stripHTMLTags(notification.bodyLong || ''),
|
body: notification.bodyLong || '',
|
||||||
notification: notification,
|
notification: notification,
|
||||||
showUnsubscribe: true,
|
showUnsubscribe: true,
|
||||||
}, next);
|
}, next);
|
||||||
|
|||||||
Reference in New Issue
Block a user