I have a web page like this:
<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>
<p class="author">By ... on Jan 23, 2012</p>
<p class="content">(some content)</p>
...
I would like to use jquery to remove the words “By” and “on” from p.author, the result would be:
<p class="author">... Jan 23, 2012</p>
<p class="content">(some content)</p>
...
Thanks!
1 Answer