1
0
mirror of https://github.com/golang/go synced 2024-11-25 09:17:57 -07:00

lib/godoc/example.html: htmlify the play code

Fixes #4539.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/6942043
This commit is contained in:
Shenghou Ma 2012-12-13 19:08:51 +08:00
parent 31eedd7f3e
commit e470b3354c

View File

@ -8,7 +8,7 @@
{{$output := .Output}} {{$output := .Output}}
{{with .Play}} {{with .Play}}
<div class="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="output"><pre>{{html $output}}</pre></div>
<div class="buttons"> <div class="buttons">
<a class="run" title="Run this code [shift-enter]">Run</a> <a class="run" title="Run this code [shift-enter]">Run</a>