index.js
function(html) {
    if (!html) {
      return '';
    }

    var re = new RegExp('(' + Object.keys(chars).join('|') + ')', 'g');

    return String(html).replace(re, function(match) {
      return chars[match];
    });
  }
function(html) {
    if (!html) {
      return '';
    }

    var re = new RegExp('(' + Object.keys(chars).join('|') + ')', 'g');

    return String(html).replace(re, function(match) {
      return chars[match];
    });
  }
function ( html ) { if ( ! html ) { return '' ; } var re = new RegExp ( '(' + Object . keys ( chars ) . join ( '|' ) + ')' , 'g' ) ; return String ( html ) . replace ( re , function ( match ) { return chars [ match ] ; } ) ; }
Unescape special characters in the given string of html.

@param  {String} html
@return {String}
Unescape special characters in the given string of html .