Skip to content
Snippets Groups Projects
Unverified Commit ea0d8d6e authored by Marcelo Schmidt's avatar Marcelo Schmidt
Browse files

Escape room topic html

parent f2a238b1
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@ Template.channelSettings.helpers
roomName: ->
return ChatRoom.findOne(@rid, { fields: { name: 1 }})?.name
roomTopic: ->
return ChatRoom.findOne(@rid, { fields: { topic: 1 }})?.topic
return s.escapeHTML ChatRoom.findOne(@rid, { fields: { topic: 1 }})?.topic
archivationState: ->
return ChatRoom.findOne(@rid, { fields: { archived: 1 }})?.archived
archivationStateDescription: ->
......
......@@ -48,7 +48,7 @@ Template.room.helpers
roomTopic: ->
roomData = Session.get('roomData' + this._id)
return '' unless roomData
return roomData.topic
return s.escapeHTML roomData.topic
roomIcon: ->
roomData = Session.get('roomData' + this._id)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment