bluemonday
bluemonday copied to clipboard
nit: func stringInSlice should use EqualsFold
https://staticcheck.io/docs/checks#SA6005
In file sanitize.go: if strings.ToLower(straw) == strings.ToLower(needle) {
should be strings.EqualsFold(straw, needle)
or, even better, compile a regexp literal for needle and use it for the entire loop.