'I want to highlight the Specific word in my ajax response loop

I want to highlight the word which user has searched. I am getting an array in response which will shows the occurrence of that word. I want to highlight that word inside my array which I received.

 success:function(response){
                     console.log(response); 
                      $("#h5data").append(sessionStorage.getItem("word"));
                      $("#WC").append(response.doc.count);

                      $.each(response.doc.occurrence, function (key, value) {  
          $('#exampleid').append("<tr>\
                <td>"+key+"</td>\
                <td>"+value+"</td>\
                </tr>");


        });

This is my ajax response which is showing the occurrence but now I have to highlight the word which user has searched.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source