JSFiddle - React, Tailwind, and code Playground

HTML

<input type="text" />

JavaScript

$(function() {
    var $dummy = $('<div/>', { html: 'Hello &amp; good day'});
    $('input').val($dummy.text());
});