title: Close incomplete href tag
body: <p>I'm trying to close this kind of string:</p>
  
  <pre><code>$link = 'Hello, welcome to &lt;a href="www.stackoverflow.com';
  
  echo $link;
  </code></pre>
  
  <p>How to fix the incomplete href tag? I want it to be:</p>
  
  <pre><code>$link = 'Hello, welcome to &lt;a href="www.stackoverflow.com"&gt;&lt;/a&gt;'; // no value between &lt;a&gt; tag is alright.
  </code></pre>
  
  <p>I don't want to use <code>strip_tags()</code> or <code>htmlentities()</code> because i want it to be displayed as a working link. </p>