function(string) {
      var self = this;
      return String(string).replace(/[&<>'\/]/g, function(s) {
        return self.entityMap[s];
      });
    }
function(string) {
      var self = this;
      return String(string).replace(/[&<>'\/]/g, function(s) {
        return self.entityMap[s];
      });
    }
function ( string ) { var self = this ; return String ( string ) . replace ( / [&<>'\/] / g , function ( s ) { return self . entityMap [ s ] ; } ) ; }
Escapes special characters with HTML entities
@memberof TableExport.prototype
@param string {String}
@returns {String} escaped string
Escapes special characters with HTML entities