4 ms·
If you would be happy with markdown, you'll be happy with a whitelist-based HTML sanitizer. HTML santization is only a hassle if you take the blacklist approac
by brlewis 14y ago
If you would be happy with markdown, you'll be happy with a whitelist-based HTML sanitizer. HTML santization is only a hassle if you take the blacklist approach in an attempt to allow lots more than what markdown can do.
I've used antisamy, but there are many others and I don't know which is best. But I would call the whitelist approach in general, best practice.