]> Cypherpunks repositories - gostls13.git/commitdiff
misc/goplay: Fix template output
authorAndrew Gerrand <adg@golang.org>
Sun, 4 Sep 2011 23:50:22 +0000 (09:50 +1000)
committerAndrew Gerrand <adg@golang.org>
Sun, 4 Sep 2011 23:50:22 +0000 (09:50 +1000)
Fixes #2219.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/4960052

misc/goplay/goplay.go

index bbc388ba4cfb09d0726888a7348a83e81319f4f4..7f4c45376f86713fe1b541f06b55f3d6c7b3b8f9 100644 (file)
@@ -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