Clean &.*; tags
This commit is contained in:
parent
e209901fef
commit
710a84dcba
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Reference in a new issue