JSFiddle - React, Tailwind, and code Playground
by pradeep
HTML
<p><b>Some content here.</b></p>
<p><b>Some Bold Text:</b> and some NOT bold text.</p>
JavaScript
var els = $('p').filter(function() {
return /^<(b)>.+<\/\1>$/.test($.trim($(this).html()));
});
els.css('color', 'red');