aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorShenghou Ma <minux.ma@gmail.com>2012-12-13 19:08:51 +0800
committerShenghou Ma <minux.ma@gmail.com>2012-12-13 19:08:51 +0800
commite470b3354cb61332585cd85bf814fe1131abe14b (patch)
tree15183e4893612a541ca886fd0c19291ae2188edb /lib
parent31eedd7f3ee26a22677f057bf61e4143e9e322cc (diff)
downloadgo-e470b3354cb61332585cd85bf814fe1131abe14b.tar.gz
go-e470b3354cb61332585cd85bf814fe1131abe14b.zip
lib/godoc/example.html: htmlify the play code
Fixes #4539. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/6942043
Diffstat (limited to 'lib')
-rw-r--r--lib/godoc/example.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/godoc/example.html b/lib/godoc/example.html
index a6df54be6f..cda2a8491e 100644
--- a/lib/godoc/example.html
+++ b/lib/godoc/example.html
@@ -8,7 +8,7 @@
{{$output := .Output}}
{{with .Play}}
<div class="play">
- <div class="input"><textarea class="code">{{.}}</textarea></div>
+ <div class="input"><textarea class="code">{{html .}}</textarea></div>
<div class="output"><pre>{{html $output}}</pre></div>
<div class="buttons">
<a class="run" title="Run this code [shift-enter]">Run</a>