Skip to content

Commit

Permalink
fix: accept h1 and h2 in portal pages
Browse files Browse the repository at this point in the history
  • Loading branch information
albanm committed Sep 8, 2023
1 parent 7cfcfd1 commit ce13e30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/sanitize-html.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const sanitizeHtml = require('sanitize-html')

const styledSanitizeOpts = {
allowedTags: sanitizeHtml.defaults.allowedTags.concat(['img', 'iframe']),
allowedTags: sanitizeHtml.defaults.allowedTags.concat(['img', 'iframe', 'h1', 'h2']),
allowedAttributes: {
...sanitizeHtml.defaults.allowedAttributes,
'*': ['style', 'class'],
Expand Down

0 comments on commit ce13e30

Please sign in to comment.