NumRefToString.js `$��U �Z��U function hexNumRefToString(hexNumRef) { return hexNumRef.replace(/&#x([0-9a-f]+);/ig, function(match, $1, idx, all) { return String.fromCharCode('0x' + $1); }); } function decNumRefToString(decNumRef) { return decNumRef.replace(/&#(\d+);/ig, function(match, $1, idx, all) { return String.fromCharCode($1); }); }