How to replace backslashes to single backslash from the string?
<p>for example I have a string</p>

<pre><code>$str = "///a//b/c////d.html";
</code></pre>

<p>How to make it more compatible with valid url?</p>
