Merge pull request #189 from Zalmoxisus/master

Escape tags to fix issue #182
This commit is contained in:
hristoterezov 2014-11-06 11:10:42 +02:00
commit 32e6a9a5d1
1 changed files with 2 additions and 2 deletions

View File

@ -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) {