JSFiddle - React, Tailwind, and code Playground
by Blake Plumb
HTML
<p>test * test</p>
<div>
<p>test * test</p>
</div>
CSS
.red{
background: red;
}
JavaScript
$('body *').each(function(){
$(this).html($(this).text().replace('*', '<span class="red">*</span>'));
});