mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
removed use of strip_tags and using String library instead
This commit is contained in:
@@ -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) + '...';
|
||||
|
||||
Reference in New Issue
Block a user