JSFiddle - React, Tailwind, and code Playground
by Luke Marlow
HTML
<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
JavaScript
jQuery(function() {
jQuery('.search-results').find('article[id*="post-"]')
.each(function() {
jQuery('#' + jQuery(this)
.attr('id'))
.html(jQuery(this).html().replace(/News \*\* .+? \*\* /g, ''));
jQuery('#' + jQuery(this).attr('id')).html(jQuery(this).html().replace(/Back /g, ''));
});
jQuery('.post-meta').each(function() {
var html = jQuery(this).html();
jQuery(this).html( html.replace(/News \*\* .+? \*\* /g, '') );
});
});