diff options
author | Byron Jones <glob@mozilla.com> | 2015-06-02 07:25:33 +0200 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2015-06-02 07:25:33 +0200 |
commit | 646d6199a644a1e6d65706c400163d00fa310bfe (patch) | |
tree | 4ae677220b8464dc99c29b5ee7609db15fc1befc /extensions/ProdCompSearch | |
parent | 4c751704c9644faf357adeea13584b08a359593d (diff) | |
download | bugzilla-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.js | 6 |
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, '&') - .replace(/</g, '<') - .replace(/>/g, '>') - .replace(/"/g, '"'); + var escaped = value.htmlEncode(); if (suggestion.data.component) { return '- ' + escaped; } |