Thanks to visit codestin.com
Credit goes to github.com

Skip to content

refactor: replace DOMPurify with sanitize-html (MIT license)#24

Merged
wesbillman merged 1 commit intomainfrom
remove-dompurify
Feb 10, 2026
Merged

refactor: replace DOMPurify with sanitize-html (MIT license)#24
wesbillman merged 1 commit intomainfrom
remove-dompurify

Conversation

@wesbillman
Copy link
Collaborator

DOMPurify uses the MPL license which is incompatible with our project's licensing requirements. Replace it with sanitize-html (MIT-licensed).

  • Add shared src/lib/sanitize.ts utility with a markdown-appropriate allowlist (covers all tags/attributes that marked can emit)
  • Update DiffViewer, NoteModal, and SessionModal to use the new utility
  • Remove dompurify and @types/dompurify dependencies

DOMPurify uses the MPL license which is incompatible with our project's
licensing requirements. Replace it with sanitize-html (MIT-licensed).

- Add shared src/lib/sanitize.ts utility with a markdown-appropriate
  allowlist (covers all tags/attributes that marked can emit)
- Update DiffViewer, NoteModal, and SessionModal to use the new utility
- Remove dompurify and @types/dompurify dependencies
@wesbillman wesbillman merged commit 9b96ff0 into main Feb 10, 2026
2 checks passed
@wesbillman wesbillman deleted the remove-dompurify branch February 10, 2026 22:28
loganj added a commit that referenced this pull request Feb 26, 2026
Add suggested reply pills for one-click responses
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants