JSFiddle - React, Tailwind, and code Playground

HTML

<table>
  <tr>
      <td><a href="/home/temp-6" target="_blank">☐ temp — 06</a></td>
<td><a id="gray" href="/home/temp-6" target="_blank">☑ temp — 06</a></td>
  <tr>
</table>

CSS

#gray { color: gray; }

JavaScript

Как сделать здеся replace?
    
    
var strMessage = $('table td');
strMessage.innerHTML = strMessage.innerHTML.replace( /☑/g,'Кароче, replace реагирует на ☑ и добавляет класс в ссылку id="gray"');

Плис халп.