JSFiddle - React, Tailwind, and code Playground
by karim79
HTML
<p class="author">By ... on Jan 23, 2012</p>
<p class="content">(some content)</p>
<p class="author">By ... on Jan 23, 2012</p>
<p class="content">(some content)</p>
JavaScript
$("p.author").each(function () {
$(this).text($(this).text().replace("By ... on ", "... "));
});