3 ms·
The security discussion didn't make sense to me but left me feeling the process was not secure.
by Noumenon72 2y ago
The security discussion didn't make sense to me but left me feeling the process was not secure.
- gcau 2y agoIt says the code is safe because it uses safe React APIs, but if you look at the code it's clearly using "dangerouslySetInnerHTML". However, if the markdown is trusted, this should be fine. I would suggest an established library to handle this for you though, unless you want to do it highly specialised and customised (which I think they're doing here).