PHP. Remove URL and URL encode
<p>How could I turn this string:</p>

<pre><code>//twitter.com/home?status=Bob Muno %7C via @MyUnknownWebsite https://dev.MyUnknownWebsite.com/people/bob_muno
</code></pre>

<p>into</p>

<pre><code>Bob Muno | via @MyUnknownWebsite https://dev.MyUnknownWebsite.com/people/bob_muno
</code></pre>
