package mailhtml import "strings" import "testing" func TestSanitizeDropsScriptAndStyleContent(t *testing.T) { in := `
Hello world
` out := Sanitize(in) for _, banned := range []string{"alert(1)", "color:red", "onclick", "`) for _, forbidden := range []string{"class=", "type=", "steal", "