title: Remove all a tags from string
body: <p>I have a string that is being input by the user. They can add as many links as they link but we only want some users to be able to click a link. What I am trying to do is replace any a tag with just the text inside it. I have managed to do it if there is one link but can't figure out how to do it when there are multiple.</p>
  
  <p>This is what I currently have and have tried many variations to get to this:</p>
  
  <pre><code>url_text = text.split("&lt;a").last.split("&lt;/a&gt;").first.split('&gt;').last
  text.gsub! /&lt;a.+a&gt;/m, url_text
  </code></pre>
  
  <p>But it only works for the first instance of a tag.</p>
  
  <p>The string I am receiving looks like this:</p>
  
  <pre><code>text = &lt;div&gt;blah blah blah.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;\r\n&lt;div&gt;&lt;a href=\"http://www.google.com\"&gt;Google&lt;/a&gt;&lt;br /&gt;Another link: &lt;br /&gt; &lt;a href=\"http://www.test.com\"&gt;Test Link&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;"
  </code></pre>
  
  <p>I want it to say: 
  blah blah blah.
  Google
  Another Link:
  Test Link</p>
  
  <p>Any help will be appreciated. Let me know if you need more code or info.</p>