JSFiddle - React, Tailwind, and code Playground

HTML

<div id="mydiv"></div>

JavaScript

var text1 = "↵,Tils&aelig;t lidt fedt&nbsp;";
    //↵,<strong>bla bla</strong>";//here text1 has value
$("#mydiv").html(text1);
text1 = $("<div>").html(text1).text();
alert(text1);