htmlentities() does not make any difference to the url.
This is the code I'm using:
$url_4_soundclip = "http://soundbytes.review-music.com/$cd/$cd-$tracknumber.mp3";
$url_4_soundclip = htmlentities($url_4_soundclip);
$url_4_soundclip = str_replace("http%3A%2F%2F", "http://", $url_4_soundclip);
echo"<object ID=Crescendo CLASSID=\"clsid:0FC6BF2B-E16A-11CF-AB2E-0080AD08A326\" ALIGN=\"CENTER\" HEIGHT=60 WIDTH=300><param NAME=\"Song\" VALUE=\"$url_4_soundclip\"><param NAME=\"AUTOSTART\" VALUE=\"false\"><param NAME=\"DETACH\" VALUE=\"false\"><param NAME=\"NOSAVE\" VALUE=\"true\"><b><div align=\"center\">Due to copyright issues, You must download <a href=\"http://www.liveupdate.com/download2.asp\" TARGET=\"_blank\">Crescendo - Internet Music Player Plugin</a></div></b></object></td></tr><tr>";