JSFiddle - React, Tailwind, and code Playground
HTML
<div class="some">RAW MATERIALS & CHEMICALS>Earth & Stone asd</div>
CSS
.red {
color:#ff0000
}
JavaScript
$(".some").html(function (i, text) {
return text.replace(/>(.*)$/, function (match, title) {
console.log(arguments);
return '><span class="red">' + title + '</span>';
});
});