diff --git a/apps/comments/js/commentstabview.js b/apps/comments/js/commentstabview.js
index db38d055af4bb..8b20bac571b01 100644
--- a/apps/comments/js/commentstabview.js
+++ b/apps/comments/js/commentstabview.js
@@ -195,22 +195,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) {