JSFiddle - React, Tailwind, and code Playground
by taylorbuley
HTML
<button id="clickme" data-entity="#039;">de-entitize</button>
JavaScript
jQuery( "#clickme" ).on( 'click', function( e ) {
alert( String.fromCharCode( parseInt( jQuery( e.target ).data('entity').replace(/^#/, "").replace(/;$/, ""), 10 ) ) );
} );