go-sanitise-html: The Making Of
Sat Dec 16, 2023
tldr; keep in mind what you’d prefer to happen in the “worst case” scenario. When sanitising HTML you could loop through and remove anything you don’t want, but it may be better to construct a new output and only copy in whats valid.
Read more