Skip to content

Commit

Permalink
6944c25bde6715119e96a47c7b3b4d2010110dde Dev: Move regex into html re…
Browse files Browse the repository at this point in the history
…moval function

Looks like CodeQL might prefer this?!

Sync to source repo @6944c25bde6715119e96a47c7b3b4d2010110dde
  • Loading branch information
dtbuild committed Apr 10, 2024
1 parent a2af5d4 commit cf028fb
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:/DataTables/DataTablesSrc",
"last-tag": "2.0.3",
"last-sync": "3e4da8555e44794043a511bdb42cf3db3283b022"
"last-sync": "6944c25bde6715119e96a47c7b3b4d2010110dde"
}
2 changes: 1 addition & 1 deletion js/dataTables.js
Original file line number Diff line number Diff line change
Expand Up @@ -1287,7 +1287,7 @@
var _stripHtml = function (input) {
var previous;

input = input.replace(_re_html, ''); // Complete tags
input = input.replace(/<[^>]*>/g, ''); // Complete tags

// Safety for incomplete script tag - use do / while to ensure that
// we get all instances
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 @@ -1234,7 +1234,7 @@ var _removeEmpty = function ( a )
var _stripHtml = function (input) {
var previous;

input = input.replace(_re_html, ''); // Complete tags
input = input.replace(/<[^>]*>/g, ''); // Complete tags

// Safety for incomplete script tag - use do / while to ensure that
// we get all instances
Expand Down

0 comments on commit cf028fb

Please sign in to comment.