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
What steps will reproduce the problem?
package main
import (
"html/template"
"os"
)
func main() {
t1, _ := template.New("xml").Parse(`<?xml version="1.0"?><feed></feed>`)
t1.Execute(os.Stdout, nil)
}
What is the expected output?
<?xml vesion="1.0"?><feed></feed>
What do you see instead?
<?xml version="1.0"?><feed></feed>
Which compiler are you using (5g, 6g, 8g, gccgo)?
6g
Which operating system are you using?
linux
Which revision are you using? (hg identify)
767b6229d4dc tip
Please provide any additional information below.
I'm not sure it's ok to use html/template for xml generation, but encoding/xml provides
only xml parsing, and we may need lots of escape with text/template.
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: