mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-05 15:20:39 +01:00
escaping message text in parse.raw
This commit is contained in:
@@ -78,6 +78,9 @@ Messaging.parse = function (message, fromuid, uid, roomId, isNew, callback) {
|
||||
return callback(err);
|
||||
}
|
||||
|
||||
parsed = S(parsed).stripTags().decodeHTMLEntities().s;
|
||||
parsed = validator.escape(String(parsed));
|
||||
|
||||
var messageData = {
|
||||
message: message,
|
||||
parsed: parsed,
|
||||
|
||||
Reference in New Issue
Block a user