webcomponent: sanitize innerHTML
Open
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
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