codex-team / codex-team/editor.js
What's the best way to sanitize HTML ?
Open
- Dominant language
- TypeScript
- Stars
- 31.9k
- Forks
- 2.2k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
Description
I'm using [editorJS with Strapi](https://www.npmjs.com/package/strapi-plugin-react-editorjs) (back) and NextJS (front).
Acutally, I sanitize the data directly in the frontend with a custom parser. It's working fine, but I've got an issue when I paste content from Word, it adds a span with some style tag.
This is the part when I transform the data from editorJS to a paragraph block
```
paragraph: function (e) {
return "
" + e.data.text + "
";},
//e.data.text =
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.