parseInt(10, 10).toString(16);
Hey,
danke für diese beiden Tipps! Es klappt:
var STRING="It's Goin' Down";
var STRING2=decodeURIComponent(STRING.replace(/&#(\d+);/g,function(m,Dec){return "%"+parseInt(Dec, 10).toString(16)}));
// STRING2 => "It's Goin' Down"
Danke nochmal!
Chris =)