Skip to content

Commit

Permalink
Fix: If export data was not string based, an error would be thrown
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan Jardine committed Aug 16, 2015
1 parent c11301d commit 4c5b2e5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/dataTables.buttons.js
Expand Up @@ -1377,6 +1377,10 @@ var _exportData = function ( dt, inOpts )
}, inOpts );

var strip = function ( str ) {
if ( typeof str !== 'string' ) {
return str;
}

if ( config.stripHtml ) {
str = str.replace( /<.*?>/g, '' );
}
Expand Down

0 comments on commit 4c5b2e5

Please sign in to comment.