escape post content

This commit is contained in:
barisusakli
2015-02-07 23:51:25 -05:00
parent b41119a374
commit 10928ed11b

View File

@@ -82,6 +82,7 @@ module.exports = function(Posts) {
if (options.stripTags) {
post.content = stripTags(post.content);
}
post.content = post.content ? validator.escape(post.content) : post.content;
return next(null, post);
}