by slver · 5y ago · 0 comments
But it seems awfully underspecified. There's no single way to "sanitize" HTML. It's essentially a filter. So we need a way to control what's filtered.
We need a whitelist of elements, attributes, etc. for this to be useful in practice.
I believe a better name for this would be "NormalizeHTML" (think HTMLTidy), and accept a filter specification.