removed use of strip_tags and using String library instead

This commit is contained in:
Julian Lam
2013-12-26 21:10:26 -05:00
parent 2c6bf93eb5
commit b52782deb8
9 changed files with 15 additions and 31 deletions

View File

@@ -510,7 +510,7 @@ var path = require('path'),
var lastMod = 0,
sanitize = validator.sanitize,
description = (function() {
var content = S(topicData.posts[0].content).stripTags();
var content = S(topicData.posts[0].content).stripTags().s;
if (content.length > 255) {
content = content.substr(0, 255) + '...';