Re: [go-nuts] bug on template on version >=1.14

2020-03-20 Thread Giulio De Donato
Hello Gregor, thanks a lot with the html I reproduced the bug, I also found the open issue, https://github.com/golang/go/issues/33671 > FWIW, http://json.org agrees that \u escapes are valid JSON and \x escapes are not my question was about if I was missing something, and I was missing the html/

Re: [go-nuts] bug on template on version >=1.14

2020-03-20 Thread Gregor Best
Hi Guilio, the playground example is using `text/template`. If you use `html/template` instead it'll also do the replacement. The behaviour is part of `html/template`'s feature set, and as far as I can remember (since at least 2015) has been present under the umbrella of context aware escapi

[go-nuts] bug on template on version >=1.14

2020-03-20 Thread liuggio
Hello everybody, we are issuing on our website a problem with templating, variable is: "+" is converted to: "+" and inside the * { "plain inside ld+json": "\x2b" } i created the running example https://play.golang.org/p/sGP2Y2KCXLg but in the play.golang.org website the bu