mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
closes #1448
This commit is contained in:
@@ -323,11 +323,12 @@ var db = require('./database'),
|
||||
|
||||
if (stripTags) {
|
||||
var s = S(results.content);
|
||||
post.content = s.stripTags.apply(s, utils.getTagsExcept(['img', 'i', 'p'])).s;
|
||||
post.content = s.stripTags.apply(s, utils.stripTags).s;
|
||||
} else {
|
||||
post.content = results.content;
|
||||
}
|
||||
|
||||
|
||||
callback(null, post);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user