Skip to content

Commit 6bb50e2

Browse files
committed
fix(sanitization): increase scrutiny of html sanitization
1 parent f5d1866 commit 6bb50e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

helpers/preprocessing.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import DOMPurify from 'isomorphic-dompurify';
22

33
function sanitizeHTML(input) {
4-
return DOMPurify.sanitize(input, {ALLOWED_TAGS: ['span']});
4+
return DOMPurify.sanitize(input, {ALLOWED_TAGS: ['span'], ALLOWED_ATTR: ['style']});
55
}
66

77
/**

0 commit comments

Comments
 (0)