1
0
mirror of https://github.com/golang/go synced 2024-11-21 15:24:45 -07:00
go/doc/codelab/wiki/htmlify.go
2011-11-08 15:43:02 -08:00

13 lines
147 B
Go

package main
import (
"io/ioutil"
"os"
"text/template"
)
func main() {
b, _ := ioutil.ReadAll(os.Stdin)
template.HTMLEscape(os.Stdout, b)
}