i have a string passed from php script to jquery script encoded with rawurlencode():
$str = '<test>';
echo rawurlencode($str);
and i'm trying to decode it with decodeURIComponent:
var decoded = decodeURIComponent(str);
finally i'm getting "%3Ctest%3E" anyway. (I have tried urlencode() with the same result aswell.) What am i doing wrong ?