Closed anrizal closed 3 years ago
https://github.com/microcosm-cc/bluemonday/blame/master/sanitize.go#L173
The change was introduced 4 months ago and merged into v1.0.6 as of 8 days ago.
https://golang.org/pkg/strings/#Builder Builder was introduced in go 1.10
So this is confirmed, I'll make the change later this evening to make this back compatible again.
However... as a workaround if this is immediately critical are:
I realise neither workaround may be ideal, so will assess the impact and will offer an update the fixes it.
Resolved by changing the strings.Builder to bytes.Buffer
Recently, I received the following error when I ran go get -u github.com/microcosm-cc/bluemonday command. I am using go1.9.2
seems like the declaration of
var b strings.Builder
caused the issue. Unfortunately I did not have time to dig deeper. Maybe someone could continue.Thank you