title: Auto-link URLs in a string
body: <p>I have a normal message output $msg. I want it to make it links, if it is links. (containing http:// or www.) then it should make it <code>&lt;a href="http://google.com" target="_blank"&gt;http://google.com&lt;/a&gt;</code></p>
  
  <p>I have stripped html from the messages </p>
  
  <pre><code>$msg = htmlspecialchars(strip_tags($show["status"]), ENT_QUOTES, 'utf-8')
  </code></pre>
  
  <p>How can that be done, seen it many places.</p>