Autocomplete Response function normalizes data?
I have a stackoverflow question
here regarding how response works and why its printing my HTML tags in the final output.
- $('#mainSearch').autocomplete({
- appendTo: ".inputWrapper",
- minLength: 3,
- source: function (request, response) {
- var customer = new Array();
- $.ajax({
- async: false,
- cache: false,
- type: "POST",
- url: "http://localhost/EmployeeDirectory/GetEmployees",
- data: { "filterText": request.term },
- error: function (data) { console.log('Error!'); },
- success: function (data) {
- for (var i = 0; i < data.length ; i++) {
- customer[i] = {
- label: data[i].FullName + "<a href='#'>" + data[i].Region + '/' + data[i].District + "</a>" + data[i].Center,
- Id: data[i].UserID,
- encryptID: data[i].UserIDEncryted
- };
- }
- }
-
- });
- response(customer);
- }
- });
How can I get my response to allow for the HTML tags within the outputted <li>'s ?