title: Find Links and Remove them from HTML
body: <p>How can I look for links in HTML and remove them?</p>
  
  <pre><code>$html = '&lt;p&gt;&lt;a href="javascript:doThis('Test Title 1')"&gt;Test Title 1&lt;/a&gt;&lt;/p&gt;';
  $html .= '&lt;p&gt;&lt;a href="javascript:doThis('Test Title 2')"&gt;Test Title 2&lt;/a&gt;&lt;/p&gt;';
  $html .= '&lt;p&gt;&lt;a href="javascript:doThis('Test Title 3')"&gt;Test Title 3&lt;/a&gt;&lt;/p&gt;';
  
  $match = '&lt;a href="javascript:doThis('Test Title 2')"&gt;';
  </code></pre>
  
  <p>I want to remove the anchor but display the text. see below.</p>
  
  <p><a href="http://link" rel="nofollow noreferrer">Test Title 1</a></p>
  
  <p>Test Title 2</p>
  
  <p><a href="http://link" rel="nofollow noreferrer">Test Title 3</a></p>
  
  <p>I've never used Regular Expressions before, but maybe i can avoid it also. Let me know if im not clear.</p>
  
  <p>Thanks</p>
  
  <p>Mark</p>
  
  <p>EDIT: its not a client side thing. I cant use javascript for this. I have a custom CMS and want to edit HTML stored in a Database.</p>