JSFiddle - React, Tailwind, and code Playground
HTML
<span class = "meh"></span>
JavaScript
var temp = "1+aájiiæ-31!<<|&æs..:";
var i = "";
if(!$.isNumeric(temp[0])){
i = parseInt(Math.random()*10);
}
temp = i+temp.replace(/([^A-Za-z0-9[\]{}_.:-])\s?/g, '');
$(".meh").html(temp);