Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement HTML component and cleanup Text component #1007

Closed
wants to merge 3 commits into from

Conversation

Skaiir
Copy link
Contributor

@Skaiir Skaiir commented Jan 26, 2024

Instead of maintaining our own sanitation code, we can just use DOMPurify. I don't really trust our own code from being purely safe from all injections, and we're also restricting people from doing a lot of stuff in their text-fields, like styling which has been requested a few times.

I've also removed our dependency on preact-markup because I found it hard to justify, at the end of the day it was just doing dangerouslySetHtml with extra steps.

Closes #642
Closes #1004

@Skaiir Skaiir self-assigned this Jan 26, 2024
@bpmn-io-tasks bpmn-io-tasks bot added the needs review Review pending label Jan 26, 2024
@github-actions github-actions bot temporarily deployed to demo-1004-html-render-componen January 26, 2024 05:16 Destroyed
@github-actions github-actions bot temporarily deployed to demo-642-relax-text-component- January 26, 2024 05:16 Destroyed
@Skaiir Skaiir closed this Jan 26, 2024
@bpmn-io-tasks bpmn-io-tasks bot removed the needs review Review pending label Jan 26, 2024
@github-actions github-actions bot temporarily deployed to demo-642-relax-text-component- January 26, 2024 05:22 Destroyed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Implement] HTML Viewer Component [component]: Colored Boxes
1 participant