JSFiddle - React, Tailwind, and code Playground
HTML
<li><a href="http://www.google.com">Search</a></li>
JavaScript
$(function() {
$('body *').each(function () {
console.log($(this).html());
console.log($(this).text());
if($(this).text() === "Search" && $(this).html()===$(this).text()) {
$(this).html("Find");
}
})
})