escaping message text in parse.raw

v1.18.x
Julian Lam 7 years ago
parent a11058bce2
commit 98eddc78cb

@ -78,6 +78,9 @@ Messaging.parse = function (message, fromuid, uid, roomId, isNew, callback) {
return callback(err); return callback(err);
} }
parsed = S(parsed).stripTags().decodeHTMLEntities().s;
parsed = validator.escape(String(parsed));
var messageData = { var messageData = {
message: message, message: message,
parsed: parsed, parsed: parsed,

Loading…
Cancel
Save