From 3c45b3edb61d8528b30390dbabb62c5946579b0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Tue, 31 Oct 2017 09:04:07 -0400 Subject: [PATCH] string is removed on develop --- src/messaging.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/messaging.js b/src/messaging.js index 51bd78e77a..9ceda65b7d 100644 --- a/src/messaging.js +++ b/src/messaging.js @@ -72,7 +72,7 @@ function canGet(hook, callerUid, uid, callback) { } Messaging.parse = function (message, fromuid, uid, roomId, isNew, callback) { - message = S(message).stripTags().decodeHTMLEntities().s; + message = utils.decodeHTMLEntities(utils.stripHTMLTags(message)); message = validator.escape(String(message)); plugins.fireHook('filter:parse.raw', message, function (err, parsed) {