JSFiddle - React, Tailwind, and code Playground

by JAAulde

HTML

<input id="fruit" value="{&quot;one&quot;:&quot;&lt;1&gt;&quot;}" />

JavaScript

console.log( JSON.parse( $( '#fruit' ).val() ) );