JSFiddle - React, Tailwind, and code Playground

by AndyE

HTML

<input id="test" />

JavaScript

$('#test').val($('<div>').html('&amp;').text());