Removing anchor (#hash) from URL
<p>Is there any reliable way in PHP to clean a URL of anchor tags?</p>

<p>So input:</p>

<p><a href="http://site.com/some/#anchor" rel="nofollow">http://site.com/some/#anchor</a></p>

<p>Outputs:</p>

<p><a href="http://site.com/some/" rel="nofollow">http://site.com/some/</a></p>
