I'm trying to decode a string and insert it into a new string, but it just won't work. I tried unescape and decodeURIComponent.
What am I doing wrong? Here is a plunker.
This is the code:
var str = "2015         :           alle";
alert(unescape(str));
I prefer to do it in AngularJS.
 are just no-break spaces. And the:is a:.%A7. you don't have hex digits, you have html entities: stackoverflow.com/questions/1147359/…str.replace(/&#(\d+);/g, function(t, c){return String.fromCharCode(c);});.