BuilderIO / BuilderIO/mitosis

webcomponent: sanitize innerHTML

Open
#370 0 comments 0 reactions 0 assignees View on GitHub
bug web-components
Dominant language
TypeScript
Stars
14.4k
Forks
671
PR merge metrics
No merged PRs in 30d

Description

sanitize innerHTML using https://github.com/apostrophecms/sanitize-html or something else

current workaround. import `sanitize-html` and invoke it on every innerHTML

```jsx
import sanitizeHtml from 'sanitize-html';


```

Contributor guide

Open the contributing guide

Research direction

No repository file, test, or entry point is named. Start by locating where webcomponent innerHTML is generated and inspect the existing output tests, then determine the sanitizer and supported behavior before changing it. Done means innerHTML is sanitized by default and the relevant tests cover the resulting output.

Written by the indexing model from the issue text.

Assessment

Tech stack
html, typescript
Domain
frontend, security
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.