JSFiddle - React, Tailwind, and code Playground
HTML
<div id="mydiv"></div>
JavaScript
var text1 = "↵,Tilsæt lidt fedt ";
//↵,<strong>bla bla</strong>";//here text1 has value
$("#mydiv").html(text1);
text1 = $("<div>").html(text1).text();
alert(text1);