JSFiddle - React, Tailwind, and code Playground
HTML
<input data-provide="typeahead" data-source='["can't","hi","boom"]' data-items="4" type="text" >
JavaScript
var html_string = '<img src="http://www.example.com/image.jpg" />'
alert($(html_string)[0].outerHTML);