JSFiddle - React, Tailwind, and code Playground

HTML

<input type=textbox id=myText>

JavaScript

$(document).ready(function() {
            var str = "&gt;";
            $('#myText').val($("<div/>").html(str).text());
         });