React, rendering HTML saved from draft-js?
I'm learning React: totally newbie.
If I save to 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?