mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 18:46:01 +01:00
strip tags in recent replies
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user