Clean &.*; tags

This commit is contained in:
Las Zenow 2012-08-22 10:42:15 +02:00
parent e209901fef
commit 710a84dcba

View file

@ -59,7 +59,9 @@ func storeFiles(r *http.Request) ([]string, error) {
func cleanStr(str string) string {
str = strings.Replace(str, "'", "'", -1)
exp, _ := regexp.Compile("[ ,]*$")
exp, _ := regexp.Compile("&[^;]*;")
str = exp.ReplaceAllString(str, "")
exp, _ = regexp.Compile("[ ,]*$")
str = exp.ReplaceAllString(str, "")
return str
}