mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-27 22:09:53 +02:00
tpl: Sync go_templates for Go 1.18
Using Go tag go1.18 4aa1efed4853ea067d665a952eee77c52faac774 Updates #9677
This commit is contained in:
@@ -155,7 +155,7 @@ func isCSSSpace(b byte) bool {
|
||||
}
|
||||
|
||||
// cssEscaper escapes HTML and CSS special characters using \<hex>+ escapes.
|
||||
func cssEscaper(args ...interface{}) string {
|
||||
func cssEscaper(args ...any) string {
|
||||
s, _ := stringify(args...)
|
||||
var b strings.Builder
|
||||
r, w, written := rune(0), 0, 0
|
||||
@@ -218,7 +218,7 @@ var mozBindingBytes = []byte("mozbinding")
|
||||
// (inherit, blue), and colors (#888).
|
||||
// It filters out unsafe values, such as those that affect token boundaries,
|
||||
// and anything that might execute scripts.
|
||||
func cssValueFilter(args ...interface{}) string {
|
||||
func cssValueFilter(args ...any) string {
|
||||
s, t := stringify(args...)
|
||||
if t == contentTypeCSS {
|
||||
return s
|
||||
|
Reference in New Issue
Block a user