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) {