mirror of
https://github.com/golang/go
synced 2024-11-21 22:04:39 -07:00
misc/goplay: another template fix
Fixes #2219. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/4950063
This commit is contained in:
parent
4e7250db12
commit
740805fdb1
@ -145,7 +145,7 @@ func run(cmd ...string) ([]byte, os.Error) {
|
||||
var frontPage = template.Must(template.New("frontPage").Parse(frontPageText)) // HTML template
|
||||
var output = template.Must(template.New("output").Parse(outputText)) // HTML template
|
||||
|
||||
var outputText = `<pre>{{html .}}</pre>`
|
||||
var outputText = `<pre>{{printf "%s" . |html}}</pre>`
|
||||
|
||||
var frontPageText = `<!doctype html>
|
||||
<html>
|
||||
|
Loading…
Reference in New Issue
Block a user