JSFiddle - React, Tailwind, and code Playground

by Kheema Pandey

HTML

<span>*</span>
<br>
<span>*</span>
    <br>
<span>hdhdf</span>

CSS

/*span[text='*']
{
    color:red;
}
span:empty{color:blue;}

:not(span){color:blue;}*/

JavaScript

$('span')
  .filter(function(){ return $(this).text() == '*'; })
  .css('color','#ef8913');