| ▲ | thaumasiotes 4 hours ago | |
> I'm also rather sceptical of things that "sanitise" HTML, both because there's a long history of them having holes, and because it's not immediately clear what that means, and what exactly is considered "safe". What is safe depends on where the sanitized HTML is going, on what you're doing with it. It isn't possible to "sanitize HTML" after collecting it so that, when you use it in the future, it will be safe. "Safe" is defined by the use. But it is possible to sanitize it before using it, when you know what the use will be. | ||