index.js
function unescape(str, type) {
  if (!isString(str)) return '';
  var chars = charSets[type || 'default'];
  var regex = toRegex(type, chars);
  return str.replace(regex, function(m) {
    return chars[m];
  });
}
function unescape(str, type) {
  if (!isString(str)) return '';
  var chars = charSets[type || 'default'];
  var regex = toRegex(type, chars);
  return str.replace(regex, function(m) {
    return chars[m];
  });
}
function unescape ( str , type ) { if ( ! isString ( str ) ) return '' ; var chars = charSets [ type || 'default' ] ; var regex = toRegex ( type , chars ) ; return str . replace ( regex , function ( m ) { return chars [ m ] ; } ) ; }
Convert HTML entities to HTML characters.

@param  {String} `str` String with HTML entities to un-escape.
@return {String}
Convert HTML entities to HTML characters .