JSFiddle - React, Tailwind, and code Playground

HTML

<input id="test" />

JavaScript

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