diff options
Diffstat (limited to 'vendor/github.com/tdewolff/parse/v2/html/util.go')
-rw-r--r-- | vendor/github.com/tdewolff/parse/v2/html/util.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 |