From 646d6199a644a1e6d65706c400163d00fa310bfe Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Tue, 2 Jun 2015 13:25:33 +0800 Subject: Bug 1146771: implement comment tagging --- extensions/ProdCompSearch/web/js/prod_comp_search.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'extensions/ProdCompSearch') 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, '"'); + var escaped = value.htmlEncode(); if (suggestion.data.component) { return '- ' + escaped; } -- cgit v1.2.3-24-g4f1b