From c73a854b8bc54425c65d8febefd4ba9d818b172c Mon Sep 17 00:00:00 2001 From: Nathaniel Landau Date: Sat, 10 Oct 2015 01:33:35 -0400 Subject: [PATCH] We can now use sed to encode HTML --- lib/htmlEncode.sed | 219 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 219 insertions(+) create mode 100644 lib/htmlEncode.sed diff --git a/lib/htmlEncode.sed b/lib/htmlEncode.sed new file mode 100644 index 0000000..e99814a --- /dev/null +++ b/lib/htmlEncode.sed @@ -0,0 +1,219 @@ +#!/usr/bin/sed -f +s/&/\&/g +s/>/\>/g +s/