Skip to content

Commit cabc30a

Browse files
authored
Merge pull request #538 from highcharts/fix/foreign-object
fix/foreign-object
2 parents ced7b17 + 9824ccf commit cabc30a

File tree

6 files changed

+1109
-441
lines changed

6 files changed

+1109
-441
lines changed

dist/index.cjs

Lines changed: 0 additions & 2 deletions
This file was deleted.

dist/index.esm.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

dist/index.esm.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

lib/sanitize.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ import DOMPurify from 'dompurify';
3131
export function sanitize(input) {
3232
const window = new JSDOM('').window;
3333
const purify = DOMPurify(window);
34-
return purify.sanitize(input, { ADD_TAGS: ['foreignObject'] });
34+
/// return purify.sanitize(input, { ADD_TAGS: ['foreignObject'] });
35+
return purify.sanitize(input);
3536
}
3637

3738
export default sanitize;

0 commit comments

Comments
 (0)