From 67ac8db190eb82a7758746fb021fa3014f4241b7 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Sun, 12 Dec 2021 15:47:51 +0100 Subject: Upstep Go dependencies (#340) * Upstep Go dependencies * tiny linter fix * Tidy --- vendor/github.com/tdewolff/parse/v2/html/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vendor/github.com/tdewolff/parse/v2/html') diff --git a/vendor/github.com/tdewolff/parse/v2/html/util.go b/vendor/github.com/tdewolff/parse/v2/html/util.go index fe12f17ff..81c4b5c90 100644 --- a/vendor/github.com/tdewolff/parse/v2/html/util.go +++ b/vendor/github.com/tdewolff/parse/v2/html/util.go @@ -5,7 +5,7 @@ var ( doubleQuoteEntityBytes = []byte(""") ) -// EscapeAttrVal returns the escaped attribute value bytes without quotes. +// EscapeAttrVal returns the escaped attribute value bytes with quotes. Either single or double quotes are used, whichever is shorter. If there are no quotes present in the value and the value is in HTML (not XML), it will return the value without quotes. func EscapeAttrVal(buf *[]byte, orig, b []byte, isXML bool) []byte { singles := 0 doubles := 0 -- cgit v1.2.3