JSFiddle - React, Tailwind, and code Playground by AndyE October 17, 2011 HTML <input id="test" /> JavaScript $('#test').val($('<div>').html('&').text());