Escape tags to fix issue #182

pull/189/head
Zalmoxisus 10 years ago
parent f2a310f6c3
commit 6a489de167
  1. 4
      contact_list.js

@ -220,7 +220,7 @@ var ContactList = (function (my) {
*/
function createDisplayNameParagraph(displayName) {
var p = document.createElement('p');
p.innerHTML = displayName;
p.innerText = displayName;
return p;
}
@ -266,7 +266,7 @@ var ContactList = (function (my) {
var contactName = $('#contactlist #' + resourceJid + '>p');
if (contactName && displayName && displayName.length > 0)
contactName.html(displayName);
contactName.text(displayName);
});
my.setClickable = function(resourceJid, isClickable) {

Loading…
Cancel
Save