File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ module github.com/microcosm-cc/bluemonday
33go 1.16
44
55require (
6- github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d
76 github.com/aymerick/douceur v0.2.0
87 github.com/gorilla/css v1.0.0 // indirect
98 golang.org/x/net v0.0.0-20210614182718-04defd469f4e
Original file line number Diff line number Diff line change 1- github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d h1:Byv0BzEl3/e6D5CLfI0j/7hiIEtvGVFPCZ7Ei2oq8iQ =
2- github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d /go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw =
31git.832008.xyz/aymerick/douceur v0.2.0 h1:Mv+mAeH1Q+n9Fr+oyamOlAkUNPWPlA8PPGR0QAaYuPk =
42git.832008.xyz/aymerick/douceur v0.2.0 /go.mod h1:wlT5vV2O3h55X9m7iVYN0TBM0NH/MmbLnd30/FjWUq4 =
53git.832008.xyz/gorilla/css v1.0.0 h1:BQqNyPTi50JCFMTw/b67hByjMVXZRwGha6wxVGkeihY =
64git.832008.xyz/gorilla/css v1.0.0 /go.mod h1:Dn721qIggHpt4+EFCcTLTU/vk5ySda2ReITrtgBl60c =
7- golang.org/x/net v0.0.0-20210421230115-4e50805a0758 h1:aEpZnXcAmXkd6AvLb2OPt+EN1Zu/8Ne3pCqPjja5PXY =
8- golang.org/x/net v0.0.0-20210421230115-4e50805a0758 /go.mod h1:72T/g9IO56b78aLF+1Kcs5dz7/ng1VjMUvfKvpfy+jM =
9- golang.org/x/net v0.0.0-20210610132358-84b48f89b13b h1:k+E048sYJHyVnsr1GDrRZWQ32D2C7lWs9JRc0bel53A =
10- golang.org/x/net v0.0.0-20210610132358-84b48f89b13b /go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y =
115golang.org/x/net v0.0.0-20210614182718-04defd469f4e h1:XpT3nA5TvE525Ne3hInMh6+GETgn27Zfm9dxsThnX2Q =
126golang.org/x/net v0.0.0-20210614182718-04defd469f4e /go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y =
137golang.org/x/sys v0.0.0-20201119102817-f84b799fce68 /go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs =
14- golang.org/x/sys v0.0.0-20210420072515-93ed5bcd2bfe /go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs =
158golang.org/x/sys v0.0.0-20210423082822-04245dca01da /go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs =
169golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 /go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo =
1710golang.org/x/text v0.3.6 /go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ =
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ func escapeUrlComponent(w stringWriterWriter, val string) error {
130130 return err
131131}
132132
133- // Query represents a single part of the query string, a query param
133+ // Query represents a single part of the query string, a query param
134134type Query struct {
135135 Key string
136136 Value string
@@ -524,11 +524,11 @@ attrsLoop:
524524 for _ , ap := range apl {
525525 if ap .regexp != nil {
526526 if ap .regexp .MatchString (htmlAttr .Val ) {
527- htmlAttr .Val = escapeAttribute (htmlAttr .Val )
527+ htmlAttr .Val = escapeAttribute (htmlAttr .Val )
528528 cleanAttrs = append (cleanAttrs , htmlAttr )
529529 }
530530 } else {
531- htmlAttr .Val = escapeAttribute (htmlAttr .Val )
531+ htmlAttr .Val = escapeAttribute (htmlAttr .Val )
532532 cleanAttrs = append (cleanAttrs , htmlAttr )
533533 }
534534 }
@@ -1058,4 +1058,4 @@ func escapeAttribute(val string) string {
10581058 val = strings .Replace (val , string ([]rune {'\u00A0' }), ` ` , - 1 )
10591059 val = strings .Replace (val , `"` , `"` , - 1 )
10601060 return val
1061- }
1061+ }
You can’t perform that action at this time.
0 commit comments