mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-08-27 00:15:52 +02:00
allow images in home and category
This commit is contained in:
@@ -298,7 +298,8 @@ var db = require('./database'),
|
||||
}
|
||||
|
||||
if(stripTags) {
|
||||
postData.content = S(content).stripTags().s;
|
||||
var s = S(content);
|
||||
postData.content = s.stripTags.apply(s, utils.getTagsExcept(['img', 'i'])).s;
|
||||
} else {
|
||||
postData.content = content;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user