Hacker News new | ask | show | jobs
by tambourine_man 2851 days ago
One nice trick that I use all the time is to convert html to md and back again in order to clean it.

Anyway, pandoc is great.

1 comments

Would that be a good way to sanitise user input? Like removing script tags etc...
It’s usually not a good idea to “get creative” when it comes to security
Only if you trust Pandoc enough to expose it to unsanitised user input.