JSFiddle - React, Tailwind, and code Playground

JavaScript

varTitle = $('<textarea />').html("Chris&apos; corner").text();

alert(varTitle);