ca540ace20beea2862dc268592d02f800816d1b3
chmalee
  Fri Jul 14 11:16:16 2023 -0700
Fix html tags showing up when using arrow keys to select autocomplete items on hgGateway, refs #18255

diff --git src/hg/js/hgGateway.js src/hg/js/hgGateway.js
index 232316e..194ba2a 100644
--- src/hg/js/hgGateway.js
+++ src/hg/js/hgGateway.js
@@ -1217,31 +1217,31 @@
         var $select = $('#selectAssembly');
         $select.outerWidth(posWidth);
         // For some reason, it doesn't set it to posWidth, it sets it to posWidth-2...
         // detect and adjust.
         var weirdDiff = posWidth - $select.outerWidth();
         if (weirdDiff) {
             $select.outerWidth(posWidth + weirdDiff);
         }
         updateGoButtonPosition();
     }
 
     function processHgSuggestResults(results, term) {
         // Make matching part of the gene symbol bold
         _.each(results, function(item) {
             if (_.startsWith(item.value.toUpperCase(), term.toUpperCase())) {
-                item.value = '<b>' + item.value.substring(0, term.length) + '</b>' +
+                item.label = '<b>' + item.value.substring(0, term.length) + '</b>' +
                              item.value.substring(term.length);
             }
         });
         return results;
     }
 
     function updateFindPositionSection(uiState) {
         // Update the assembly menu, positionInput and description.
         var suggestUrl = null;
         if (uiState.suggestTrack) {
             suggestUrl = 'hgSuggest?db=' + uiState.db + '&prefix=';
         }
         setAssemblyOptions(uiState);
         if (uiState.position) {
             $('#positionDisplay').text(addCommasToPosition(uiState.position));