JSFiddle - React, Tailwind, and code Playground
by mblase75
HTML
<p>Test test</p>
<p><strong>External Links for:</strong></p>
<p></p>
<p>Done testing</p>
<p><strong>External Links for:</strong></p>
<p>Test test</p>
<p><strong>External Links for:</strong></p>
<p></p>
<p>Done testing</p>
JavaScript
$('p').filter(function(i,el) {
var test1 = $(el).html() == "<strong>External Links for:</strong>";
var test2 = $(el).next('p').html() == "";
return test1 && test2;
}).next().addBack().hide();