diff --git a/apps/comments/js/commentstabview.js b/apps/comments/js/commentstabview.js
index 9e501b141a7..2d5923773f3 100644
--- a/apps/comments/js/commentstabview.js
+++ b/apps/comments/js/commentstabview.js
@@ -196,22 +196,26 @@
},
sorter: function (q, items) { return items; }
},
- displayTpl: '
'
- + ''
- + ''
- + ' ${label}'
- + '',
- insertTpl: ''
- + ''
- + ''
- + ' ${label}'
- + '',
+ displayTpl: function (item) {
+ return ''
+ + ''
+ + ''
+ + ' ' + escapeHTML(item.label) + ''
+ + '';
+ },
+ insertTpl: function (item) {
+ return ''
+ + ''
+ + ''
+ + ' ' + escapeHTML(item.label) + ''
+ + '';
+ },
searchKey: "label"
});
$target.on('inserted.atwho', function (je, $el) {