diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2016-12-13 20:43:58 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-13 20:43:58 +0300 |
commit | c1832b84cec50adee40c446c1e5ecc5258939f4a (patch) | |
tree | 66d4c217312c6d35a9819f18b9d4687d3fec40ea | |
parent | f13530d7befb7266485eb519a0c78d64291775b8 (diff) | |
parent | 3748002a8fa63fd2b094263b3e5e9c4c9704b991 (diff) |
Merge pull request #182 from nextcloud/fix-html-espcaping-issues
Fix HTML escaping issues
-rw-r--r-- | js/views/roomlistview.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/views/roomlistview.js b/js/views/roomlistview.js index 22ebd0bcd..1e4fa9010 100644 --- a/js/views/roomlistview.js +++ b/js/views/roomlistview.js @@ -303,11 +303,11 @@ break; } - $('#emptycontent h2').text(message); + $('#emptycontent h2').html(message); $('#emptycontent p').text(messageAdditional); }, addTooltip: function () { - var htmlstring = this.model.get('displayName').replace(/\, /g, '<br>'); + var htmlstring = escapeHTML(this.model.get('displayName')).replace(/\, /g, '<br>'); this.ui.room.tooltip({ placement: 'bottom', |