Skip to content

Commit

Permalink
Fixed XSS vulnerability with default onCellHtmlData function
Browse files Browse the repository at this point in the history
  • Loading branch information
hhurz committed Apr 10, 2022
1 parent 4a4bd04 commit de1c24f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tableExport.js
Expand Up @@ -2081,7 +2081,7 @@
$cell.data('teUserDefText', 1);
}
else if (htmlData !== '') {
const html = $.parseHTML(htmlData);
const html = $.parseHTML('<div>' + htmlData + '</div>', null, false);
let inputIndex = 0;
let selectIndex = 0;

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

Large diffs are not rendered by default.

0 comments on commit de1c24f

Please sign in to comment.