Skip to content

Commit

Permalink
fix(plugin-chart-table): anchor should keep href (apache#661)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmud authored and zhaoyongjie committed Nov 26, 2021
1 parent c64335f commit 771cf48
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@
"__timestamp": "1968-01-01T00:00:00",
"state": "other",
"gender": "boy",
"name": "Michael",
"name": "<a href=\"https://www.google.com\" target=\"_blank\">Michael</a>",
"total": -35253,
"boys": 35253,
"SUM(num_california)": 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ import { DataColumnMeta } from '../types';
const xss = new FilterXSS({
whiteList: {
...getDefaultWhiteList(),
span: ['style', 'title'],
div: ['style'],
a: ['style'],
img: ['style', 'src', 'alt', 'title', 'width', 'height'],
span: ['style', 'class', 'title'],
div: ['style', 'class'],
a: ['style', 'class', 'href', 'title', 'target'],
img: ['style', 'class', 'src', 'alt', 'title', 'width', 'height'],
},
stripIgnoreTag: true,
css: false,
Expand Down

0 comments on commit 771cf48

Please sign in to comment.