IO.decodehtmlEntities = (function (){
var rdecode = /&(amp|lt|gt|quot|zwnj);/g,
rdecodenum = /&#([0-9]{1,8});/g,
rdecodehex = /&#x([0-9a-f]{1,4});/g,
decodeTable = {
amp: "&",
lt: "<",
gt: ">",
"zwnj": "",
quot: '"'
},
decodeFn = function (a, b) {
return (b in decodeTable ? decodeTable[b] : a);
},
decodeNumFn = function( a, b ) {
var num = parseInt( b, 10 );
return num < 256 ? String.fromCharCode(num) : "";