From e69928d62442b98d4d82cadfbeb4ddf8b28ba6d9 Mon Sep 17 00:00:00 2001 From: Baris Usakli Date: Thu, 8 Aug 2013 14:12:28 -0400 Subject: [PATCH] strip tags in recent replies --- src/posts.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/posts.js b/src/posts.js index 583ab16236..febaa8c16a 100644 --- a/src/posts.js +++ b/src/posts.js @@ -65,6 +65,10 @@ var RDB = require('./redis.js'), Posts.addUserInfoToPost(postData, function() { topics.getTopicField(postData.tid, 'slug', function(topicSlug) { + + if(postData.content) + postData.content = utils.strip_tags(postTools.markdownToHTML(postData.content)); + postData.topicSlug = topicSlug; returnData.push(postData); callback(null);