Hacker News new | ask | show | jobs
by alexis_fr 2396 days ago
It can be sanitized before saving. Many libraries for that.
1 comments

It can, but dealing with raw html, so white / black listing html tags is incredibly difficult and error prone.

I think it'd require whole team that'd maintain that and a lot of tests on different browsers cuz browsers try to "fix" html and it may vary between them, meanwhile it may lead to some bugs(probably)

I'd suggest to try stay away from html as hard as you can and use those cool *down parsers instead :P