1
0
mirror of https://github.com/golang/go synced 2024-11-25 11:07:59 -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)
}