feat: query_parser support new one filter parse pattern.
This commit is contained in:
13
query_parser/utils.go
Normal file
13
query_parser/utils.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package query_parser
|
||||
|
||||
import "net/url"
|
||||
|
||||
// EncodeSpecialCharacters 对字符串进行编码
|
||||
func EncodeSpecialCharacters(input string) string {
|
||||
return url.QueryEscape(input)
|
||||
}
|
||||
|
||||
// DecodeSpecialCharacters 对字符串进行解码
|
||||
func DecodeSpecialCharacters(input string) (string, error) {
|
||||
return url.QueryUnescape(input)
|
||||
}
|
||||
Reference in New Issue
Block a user