sprig
sprig copied to clipboard
apostrophes are transformed by printf function
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.
If you are using the html/template
go template package, I think printf
would html encode the apostrophe. Can you include more details?