13 lines
176 B
Go
13 lines
176 B
Go
package utils
|
|
|
|
import "strings"
|
|
|
|
func EscapePath(path string) string {
|
|
// escape %
|
|
escapedPath := strings.ReplaceAll(path, "%", "%25")
|
|
|
|
// add others
|
|
|
|
return escapedPath
|
|
}
|