diff options
Diffstat (limited to 'doc/articles/wiki/htmlify.go')
-rw-r--r-- | doc/articles/wiki/htmlify.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/articles/wiki/htmlify.go b/doc/articles/wiki/htmlify.go new file mode 100644 index 0000000000..2a845a1740 --- /dev/null +++ b/doc/articles/wiki/htmlify.go @@ -0,0 +1,16 @@ +// 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) +} |