title: How to remove consecutive links from a webpage?
body: <p>I wish to remove consecutive links on a webpage</p>
  
  <p>Here is a sample </p>
  
  <pre><code>&lt;div style="font-family: Arial;"&gt;
      &lt;br&gt;
      &amp;nbsp;
      &lt;a href="http://google.com"&gt;AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA&lt;/a&gt;
      &amp;nbsp;
      &lt;a href="http://google.com"&gt;BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB&lt;/a&gt;
      Google is a search
      &lt;a href="http://www.google.com"&gt;engine&lt;/a&gt;
  </code></pre>
  
  <p>In the above html I want to remove the first 2 A tags  and not the third one (My script should only remove consecutive  tags)</p>