You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like HTML template escape characters out of the variable.
In my case I tried to build a simple XML file, and the the first charset is escaped. http://play.golang.org/p/PUylzjxJfW
It looks like a bug to me.
Best regards.
The text was updated successfully, but these errors were encountered:
bradfitz
changed the title
HTML template escape first char for XML
html/template: escape first char for XML
Sep 4, 2015
Probably because this is the HTML templating package and you're trying to produce XML. I suspect that it doesn't know how to parse the <?foo> directives with the question mark there.
You probably want to use the text/template package instead, if you're not going to be taking advantage of any of the HTML auto-escaping features.
/cc @robpike@adg to decide what (if anything) to do here.
It looks like HTML template escape characters out of the variable.
In my case I tried to build a simple XML file, and the the first charset is escaped.
http://play.golang.org/p/PUylzjxJfW
It looks like a bug to me.
Best regards.
The text was updated successfully, but these errors were encountered: