Remove string.js dependency

This commit is contained in:
Peter Jaszkowiak
2017-10-13 21:02:41 -06:00
parent f9a1951ec5
commit 46fafb20b9
23 changed files with 383 additions and 62 deletions

View File

@@ -2,7 +2,6 @@
var async = require('async');
var S = require('string');
var nconf = require('nconf');
var user = require('../user');
@@ -217,7 +216,7 @@ function addTags(topicData, req, res) {
var postAtIndex = findPost(Math.max(0, req.params.post_index - 1));
if (postAtIndex && postAtIndex.content) {
description = S(postAtIndex.content).decodeHTMLEntities().stripTags().s;
description = utils.stripHTMLTags(utils.decodeHTMLEntities(postAtIndex.content));
}
if (description.length > 255) {