HTML security
Why filtering HTML in the browser is not enough
Because the server does not know whether a request came from your editor. Anyone who can save content can also send arbitrary HTML with their own HTTP client, a modified form or another endpoint – and then the JavaScript filter never runs at all. Cleaning in the browser improves convenience and c…