I\'m trying to use JavaScript & regex to replace numerical HTML entities with their actual Unicode characters, e.g.
foo's bar → foo\'s bar
"foo's bar".replace(/(\d+);/g, function(match, match2) {return String.fromCharCode(+match2);})