Skip to content

Commit

Permalink
Fix: ColVis buttons wasn't stripping HTML correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanJard committed Aug 20, 2020
1 parent d7becec commit 4359f35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/buttons.colVis.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ $.extend( DataTable.ext.buttons, {
title = dt.column(idx).header().innerHTML;
}

title
title = title
.replace(/\n/g," ") // remove new lines
.replace(/<br\s*\/?>/gi, " ") // replace line breaks with spaces
.replace(/<select(.*?)<\/select>/g, "") // remove select tags, including options text
Expand Down

0 comments on commit 4359f35

Please sign in to comment.