Hi all!
I need a way to decode numeric HTML entities (like Ü) back to
their UTF-8 character to place them into a textarea. I tried the
following but it doesn't work in IE.
data = data.replace(/&#(\d+);/g,
function() {
return String.fromChar Code(RegExp.$1) ;
});
Has anyone a crossbrowser solution?
Regards
I need a way to decode numeric HTML entities (like Ü) back to
their UTF-8 character to place them into a textarea. I tried the
following but it doesn't work in IE.
data = data.replace(/&#(\d+);/g,
function() {
return String.fromChar Code(RegExp.$1) ;
});
Has anyone a crossbrowser solution?
Regards
Comment