allow using only text content
This commit is contained in:
parent
441b121b99
commit
fa5d2d012d
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ router.get('/:campaign/:list/:subscription', passport.csrfProtection, (req, res,
|
|||
renderAndShow(body && body.toString(), false);
|
||||
});
|
||||
} else {
|
||||
renderAndShow(campaign.html, true);
|
||||
renderAndShow(campaign.html || (campaign.text || '').replace(/</g,'<').replace(/>/g,'>').replace(/&/g,'&').replace(/"/g,'"').replace(/\n/g,'<br />'), true);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue