mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-06-07 00:46:58 +03:00
Remove unnecessary file
This commit is contained in:
parent
2084a81297
commit
0035475214
2 changed files with 2 additions and 11 deletions
|
@ -2,6 +2,7 @@ package router
|
|||
|
||||
import (
|
||||
"errors"
|
||||
"html"
|
||||
"io"
|
||||
"io/fs"
|
||||
"reflect"
|
||||
|
@ -115,7 +116,7 @@ func New(tmplDir fs.FS, extraData map[string]interface{}, secret [64]byte) *echo
|
|||
//"htmlescaper": template.htmlEscaper,
|
||||
funcs := template.FuncMap{
|
||||
"StringsJoin": strings.Join,
|
||||
"attrescaper": util.EscapeHtmlCode,
|
||||
"attrescaper": html.EscapeString,
|
||||
}
|
||||
templates := make(map[string]*template.Template)
|
||||
templates["login.html"] = template.Must(template.New("login").Funcs(funcs).Parse(tmplLoginString))
|
||||
|
|
10
util/html.go
10
util/html.go
|
@ -1,10 +0,0 @@
|
|||
package util
|
||||
|
||||
import (
|
||||
"html"
|
||||
)
|
||||
|
||||
func EscapeHtmlCode(s string) string {
|
||||
encodedString := html.EscapeString(s)
|
||||
return encodedString
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue