We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0893e63 commit 5053663Copy full SHA for 5053663
js/render-datatables.js
@@ -269,10 +269,10 @@
269
default:
270
render = $.fn.dataTable.render.extra = function ( data, type, row ) {
271
if((data === true || data === 'true') && typeof series.format !== 'undefined' && series.format.truthy !== ''){
272
- data = series.format.truthy;
+ data = series.format.truthy.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi, '');
273
}
274
if((data === false || data === 'false') && typeof series.format !== 'undefined' && series.format.falsy !== ''){
275
- data = series.format.falsy;
+ data = series.format.falsy.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi, '');
276
277
return data;
278
0 commit comments