mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +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() {
|
Posts.addUserInfoToPost(postData, function() {
|
||||||
topics.getTopicField(postData.tid, 'slug', function(topicSlug) {
|
topics.getTopicField(postData.tid, 'slug', function(topicSlug) {
|
||||||
|
|
||||||
|
if(postData.content)
|
||||||
|
postData.content = utils.strip_tags(postTools.markdownToHTML(postData.content));
|
||||||
|
|
||||||
postData.topicSlug = topicSlug;
|
postData.topicSlug = topicSlug;
|
||||||
returnData.push(postData);
|
returnData.push(postData);
|
||||||
callback(null);
|
callback(null);
|
||||||
|
|||||||
Reference in New Issue
Block a user