string_sanitisation.go 220 Bytes edit raw blame history 1 2 3 4 5 6 7 8 package webutility const patern = "\"';&*<>=\\`:" // SanitiseString removes characters from s found in patern and returns new modified string. func SanitiseString(s string) string { return ReplaceAny(s, patern, "") }