title: How to highlight input words in autocomplete jquery ui
body: <p>Could you please help me in highlighting the typed words in the auto complete text box. i am already populating the autocomplete words and i need to just highlight the typed words alone.i am new to Jquery autocomplete</p>
  
  <p>i am getting the output as text like <code>&lt;Strong&gt;Br&lt;/Strong&gt;ijesh</code>  // seen as text<br>
  and not as highlighting the <strong>Br</strong> alone.</p>
  
  <p>Below is the snippet</p>
  
  <pre><code>$(document).ready(function () {
  $("#studentName").autocomplete({
      source: function (request, response) {
          $.ajax({
              type: "POST",
              contentType: "application/json; charset=utf-8",
              url: "Webservice.asmx/GetStudentNames",
              data: "{'prefixText':'" + request.term + "'}",
              dataType: "json", 
              success: function (data) {
             var regex = new RegExp("(?![^&amp;;]+;)(?!&lt;[^&lt;&gt;]*)(" + request.term.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi, "\\$1") + ")(?![^&lt;&gt;]*&gt;)(?![^&amp;;]+;)", "gi");
                  response($.map(data.d, function (item) {
                      return {
                      label: item.split('|')[0].replace(regex, "&lt;Strong&gt;$1&lt;/Strong&gt;"),
                      val: item.split('|')[1]
                      }
                  }))
              },
  
              failure: function (response) {
                  ServiceFailed(result);
              }
          });
      },
      select: function (event, ui) {
       txtStudent(ui.item.val, ui.item.label); //Student name and id used in this method
      },
      minLength: 2
  });
  });              // End of ready method
  </code></pre>
  
  <p>Please help me.</p>