Skip to content

Commit

Permalink
c01e9d2dd967441532f9d41e667becf4403bd640 Fix: If a boolean was passed…
Browse files Browse the repository at this point in the history
… to the stripHtml function, it would throw an error

Sync to source repo @c01e9d2dd967441532f9d41e667becf4403bd640
  • Loading branch information
dtbuild committed Jul 25, 2024
1 parent 34f4ebe commit ea5e8f7
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion datatables.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
],
"src-repo": "http://github.com/DataTables/DataTablesSrc",
"last-tag": "2.1.2",
"last-sync": "a71c2546d2bd5f4e8bdc98666976d1d5f61d00ff"
"last-sync": "c01e9d2dd967441532f9d41e667becf4403bd640"
}
2 changes: 1 addition & 1 deletion js/dataTables.js
Original file line number Diff line number Diff line change
Expand Up @@ -1270,7 +1270,7 @@

// Replaceable function in api.util
var _stripHtml = function (input) {
if (! input) {
if (! input || typeof input !== 'string') {
return input;
}

Expand Down
2 changes: 1 addition & 1 deletion js/dataTables.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/dataTables.min.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/dataTables.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1217,7 +1217,7 @@ var _removeEmpty = function ( a )

// Replaceable function in api.util
var _stripHtml = function (input) {
if (! input) {
if (! input || typeof input !== 'string') {
return input;
}

Expand Down

0 comments on commit ea5e8f7

Please sign in to comment.