mirror of
https://github.com/golang/go
synced 2024-11-24 02:00:20 -07:00
cd1a2f7e74
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5701050
17 lines
307 B
Go
17 lines
307 B
Go
// Copyright 2010 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package main
|
|
|
|
import (
|
|
"io/ioutil"
|
|
"os"
|
|
"text/template"
|
|
)
|
|
|
|
func main() {
|
|
b, _ := ioutil.ReadAll(os.Stdin)
|
|
template.HTMLEscape(os.Stdout, b)
|
|
}
|