Skip to content

Commit 88ae827

Browse files
committed
Restored foreignObject in sanitizer.
1 parent 5d1b257 commit 88ae827

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/sanitize.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ 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'] });
35-
return purify.sanitize(input);
34+
return purify.sanitize(input, { ADD_TAGS: ['foreignObject'] });
3635
}
3736

3837
export default sanitize;

0 commit comments

Comments
 (0)