mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-05 06:09:57 +01:00
escape post content
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user