string_sanitisation.go 267 Bytes
package webutility

import "git.to-net.rs/marko.tikvic/util"

const patern = "\"';&*<>=\\`:"

// SanitiseString removes characters from s found in patern and returns new modified string.
func SanitiseString(s string) string {
	return util.ReplaceAny(s, patern, "")
}