Here is the Jsfiddle that I experimented with
<span>*</span>
<br>
<span>*</span>
<br>
<span>hdhdf</span>
span[text='*']
{
color:red;
}
I am looking to target the two spans containing * in their content using CSS. How can this be achieved?