title: How to remove text between tags in php?
body: <p>Despite using PHP for years, I've never really learnt how to use expressions to truncate strings properly... which is now biting me in the backside!</p>
  
  <p>Can anyone provide me with some help truncating this? I need to chop out the text portion from the url, turning</p>
  
  <pre><code>&lt;a href="link.html"&gt;text&lt;/a&gt;
  </code></pre>
  
  <p>into</p>
  
  <pre><code>&lt;a href="link.html"&gt;&lt;/a&gt;
  </code></pre>