From 10928ed11b9eb431da72987f484fe2b0db7d946e Mon Sep 17 00:00:00 2001 From: barisusakli Date: Sat, 7 Feb 2015 23:51:25 -0500 Subject: [PATCH] escape post content --- src/posts/summary.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/posts/summary.js b/src/posts/summary.js index dd537ce8d6..962a51aaa6 100644 --- a/src/posts/summary.js +++ b/src/posts/summary.js @@ -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); }