From 933a89d2ae11f34bde4d07e923371cd111bcd92a Mon Sep 17 00:00:00 2001 From: barisusakli Date: Wed, 23 Sep 2015 01:17:31 -0400 Subject: [PATCH] closes #3654 removed double escape --- src/controllers/topics.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/controllers/topics.js b/src/controllers/topics.js index d77281266e..18069505e6 100644 --- a/src/controllers/topics.js +++ b/src/controllers/topics.js @@ -163,15 +163,13 @@ topicsController.get = function(req, res, callback) { var postAtIndex = findPost(Math.max(0, req.params.post_index - 1)); if (postAtIndex && postAtIndex.content) { - description = S(postAtIndex.content).stripTags().decodeHTMLEntities().s; + description = S(postAtIndex.content).decodeHTMLEntities().stripTags().s; } if (description.length > 255) { description = description.substr(0, 255) + '...'; } - description = validator.escape(description); - var ogImageUrl = ''; if (topicData.thumb) { ogImageUrl = topicData.thumb;