We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5d1866 commit 6bb50e2Copy full SHA for 6bb50e2
helpers/preprocessing.js
@@ -1,7 +1,7 @@
1
import DOMPurify from 'isomorphic-dompurify';
2
3
function sanitizeHTML(input) {
4
- return DOMPurify.sanitize(input, {ALLOWED_TAGS: ['span']});
+ return DOMPurify.sanitize(input, {ALLOWED_TAGS: ['span'], ALLOWED_ATTR: ['style']});
5
}
6
7
/**
0 commit comments