JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.11.4/jquery-ui.js"></script>
<link rel="stylesheet" href="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.11.4/themes/black-tie/jquery-ui.css">
<input type="text" />
JavaScript
$(function () {
$('input').autocomplete({
source: ['This is a test*', 'Another & another'],
select: function (event, ui) {
event.preventDefault();
this.value = $('<div />').html(ui.item.label).text();
}
}).autocomplete( "instance" )._renderItem = function( ul, item ) {
return $( "<li>" )
.append( item.label )
.appendTo( ul );
};
});