mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 14:35:47 +01:00
strip html tags from email subject
This commit is contained in:
@@ -220,7 +220,7 @@ function pushToUids(uids, notification, callback) {
|
|||||||
async.eachLimit(uids, 3, function (uid, next) {
|
async.eachLimit(uids, 3, function (uid, next) {
|
||||||
emailer.send('notification', uid, {
|
emailer.send('notification', uid, {
|
||||||
path: notification.path,
|
path: notification.path,
|
||||||
subject: 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: utils.stripHTMLTags(notification.bodyLong || ''),
|
||||||
showUnsubscribe: true,
|
showUnsubscribe: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user