1
0
mirror of https://github.com/golang/go synced 2024-11-24 12:00:14 -07:00
go/doc/codelab/wiki/htmlify.go
2011-08-18 10:38:08 +10:00

13 lines
142 B
Go

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