summaryrefslogtreecommitdiffstats
path: root/extensions/ProdCompSearch
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-06-02 07:25:33 +0200
committerByron Jones <glob@mozilla.com>2015-06-02 07:25:33 +0200
commit646d6199a644a1e6d65706c400163d00fa310bfe (patch)
tree4ae677220b8464dc99c29b5ee7609db15fc1befc /extensions/ProdCompSearch
parent4c751704c9644faf357adeea13584b08a359593d (diff)
downloadbugzilla-646d6199a644a1e6d65706c400163d00fa310bfe.tar.gz
bugzilla-646d6199a644a1e6d65706c400163d00fa310bfe.tar.xz
Bug 1146771: implement comment tagging
Diffstat (limited to 'extensions/ProdCompSearch')
-rw-r--r--extensions/ProdCompSearch/web/js/prod_comp_search.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/extensions/ProdCompSearch/web/js/prod_comp_search.js b/extensions/ProdCompSearch/web/js/prod_comp_search.js
index 69cc7cc0b..efbaab81b 100644
--- a/extensions/ProdCompSearch/web/js/prod_comp_search.js
+++ b/extensions/ProdCompSearch/web/js/prod_comp_search.js
@@ -99,11 +99,7 @@ $(function() {
},
formatResult: function(suggestion, currentValue) {
var value = (suggestion.data.component ? suggestion.data.component : suggestion.data.product);
- var escaped = value
- .replace(/&/g, '&amp;')
- .replace(/</g, '&lt;')
- .replace(/>/g, '&gt;')
- .replace(/"/g, '&quot;');
+ var escaped = value.htmlEncode();
if (suggestion.data.component) {
return '-&nbsp;' + escaped;
}