React, render html saved from draft-js
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 325
- Forks
- 139
- PR merge metrics
- No merged PRs in 30d
Description
I'm learning React: totally newbie.
If I save in DB the HTML directly from draft.js (or it's variants always based on it) and then in a view page of my React SPA I retrieve HTML from DB through my API:
QUESTIONS:
-
how can I render that HTML?
-
dangerouslySetInnerHTML? Or maybe one of this (what do you suggest?)?
-
I read words like "sanitize", "securing HTML". But how, there is a library?
-
I need to secure html from draft-js when I save it in DB or after, when I'm rendering it?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names a React SPA, an API, Draft.js-generated HTML, and several HTML parser libraries, but no repository files or tests. Start by checking the project documentation for guidance on rendering and sanitizing this HTML; done would be a clear, documented recommendation addressing the listed questions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend, security
- Issue type
- Documentation
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100