I am producing links on my page using the $Html->link() menthod in cakePHP and my code is like this
echo $this->Html->link(substr($topsongs[$i]['song_details']['song_name'], 0, 18), array("?"=>array('song_name'=>$song,'song_id'=>$song_id)), array('class' => 'top_links link', 'id' => 'playlist-add' . $i, 'onclick' => "link_play(this.id);return false;"));
As seen in the code, I am passing the link id to the JS function. When retreving the song_name keystring , it is showing as an encoded string as it contains '+' instead of space and other characters. This song_name is actually a file name that is supplied to Flowplayer for playing. So it has to be free from the encoded things. How can I decode these variable in my Javascript function..?