about summary refs log tree commit diff stats
path: root/htmlsafe.awk
diff options
context:
space:
mode:
Diffstat (limited to 'htmlsafe.awk')
-rwxr-xr-xhtmlsafe.awk8
1 files changed, 8 insertions, 0 deletions
diff --git a/htmlsafe.awk b/htmlsafe.awk new file mode 100755 index 0000000..a49fe21 --- /dev/null +++ b/htmlsafe.awk
@@ -0,0 +1,8 @@
1#!/bin/awk -f
2{
3 gsub(/&/, "\\&", $0)
4 gsub(/</, "\\&lt;", $0)
5 gsub(/>/, "\\&gt;", $0)
6 print
7}
8