escape post content

This commit is contained in:
Barış Soner Uşaklı
2018-09-04 10:59:48 -04:00
parent c7f3b76b4e
commit 446b125c83

View File

@@ -81,7 +81,7 @@ function getQueuedPosts(ids, callback) {
});
async.map(postData, function (postData, next) {
postData.data.rawContent = postData.data.content;
postData.data.rawContent = validator.escape(String(postData.data.content));
postData.data.title = validator.escape(String(postData.data.title));
async.waterfall([
function (next) {