Masterminds / sprig

Useful template functions for Go templates.
http://masterminds.github.io/sprig/
MIT License
4.25k stars 436 forks source link

apostrophes are transformed by printf function #389

Open jotego opened 10 months ago

jotego commented 10 months ago

Using printf "'hello" will generate the text ''hello. It looks like there is some internal conversion that reminds me of XML going on inside the library.

chrishalbert commented 9 months ago

If you are using the html/template go template package, I think printf would html encode the apostrophe. Can you include more details?