Fix double escape in usercards

This commit is contained in:
Guangcong Luo
2021-04-30 07:21:36 -04:00
parent 8a20be4d0c
commit bb9ec0a0bd

View File

@@ -2605,11 +2605,11 @@ function toId() {
buf += '<span class="userstatus' + (offline ? ' offline' : '') + '">' + BattleLog.escapeHTML(status) + '<br /></span>';
}
if (groupName) {
buf += '<small class="usergroup roomgroup">' + BattleLog.escapeHTML(groupName) + '</small>';
buf += '<small class="usergroup roomgroup">' + groupName + '</small>';
if (globalGroupName) buf += '<br />';
}
if (globalGroupName) {
buf += '<small class="usergroup globalgroup">' + BattleLog.escapeHTML(globalGroupName) + '</small>';
buf += '<small class="usergroup globalgroup">' + globalGroupName + '</small>';
}
if (data.customgroup) {
if (groupName || globalGroupName) buf += '<br />';