allow images in home and category

This commit is contained in:
Baris Soner Usakli
2014-02-07 15:00:53 -05:00
parent e4c92880ea
commit d4c2a47c8e
3 changed files with 18 additions and 2 deletions

View File

@@ -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;
}