diff --git a/.datatables-commit-sync b/.datatables-commit-sync index 39cda7ac..5d3990f7 100644 --- a/.datatables-commit-sync +++ b/.datatables-commit-sync @@ -1 +1 @@ -e171e7b3e698822231f23b73dec77fea2320a227 +da2fd7496f9b3af515df83a26c61c05d9451ae42 diff --git a/media/js/jquery.dataTables.js b/media/js/jquery.dataTables.js index 20229340..0117d3f6 100644 --- a/media/js/jquery.dataTables.js +++ b/media/js/jquery.dataTables.js @@ -13656,13 +13656,15 @@ $.extend( DataTable.ext.type.filter, { html: function ( data ) { - return data - .replace( __filter_lines, " " ) - .replace( __filter_html, "" ); + return typeof data === 'string' ? + data + .replace( __filter_lines, " " ) + .replace( __filter_html, "" ) : + ''; }, string: function ( data ) { - return data.replace ? + return typeof data === 'string' ? data.replace( __filter_lines, " " ) : data; }