summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gerrand <adg@golang.org>2011-09-13 14:43:18 +1000
committerAndrew Gerrand <adg@golang.org>2011-09-13 14:43:18 +1000
commita06f10841c67b8830228a93c216ec1e6ca884477 (patch)
tree78964217a698ce70afadba87b465ca71862b1306
parent497edfc6e91f89e73bc3722728e036273913d235 (diff)
downloadgo-a06f10841c67b8830228a93c216ec1e6ca884477.tar.gz
[release-branch.r60] misc/goplay: Fix template output
??? CL 4960052 / da491846e511 misc/goplay: Fix template output Fixes issue 2219. R=golang-dev, r CC=golang-dev http://codereview.appspot.com/4960052 ??? R=dsymonds CC=golang-dev http://codereview.appspot.com/4960067
-rw-r--r--misc/goplay/goplay.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/goplay/goplay.go b/misc/goplay/goplay.go
index bbc388ba4..7f4c45376 100644
--- a/misc/goplay/goplay.go
+++ b/misc/goplay/goplay.go
@@ -256,7 +256,7 @@ function compileUpdate() {
</head>
<body>
<table width="100%"><tr><td width="60%" valign="top">
-<textarea autofocus="true" id="edit" spellcheck="false" onkeydown="keyHandler(event);" onkeyup="autocompile();">{{html .}}</textarea>
+<textarea autofocus="true" id="edit" spellcheck="false" onkeydown="keyHandler(event);" onkeyup="autocompile();">{{printf "%s" . |html}}</textarea>
<div class="hints">
(Shift-Enter to compile and run.)&nbsp;&nbsp;&nbsp;&nbsp;
<input type="checkbox" id="autocompile" value="checked" /> Compile and run after each keystroke