aboutsummaryrefslogtreecommitdiffstats
path: root/nocompile/bin/encode_html_entities
diff options
context:
space:
mode:
Diffstat (limited to 'nocompile/bin/encode_html_entities')
-rwxr-xr-xnocompile/bin/encode_html_entities4
1 files changed, 4 insertions, 0 deletions
diff --git a/nocompile/bin/encode_html_entities b/nocompile/bin/encode_html_entities
new file mode 100755
index 0000000..4cb1836
--- /dev/null
+++ b/nocompile/bin/encode_html_entities
@@ -0,0 +1,4 @@
+#!/bin/sh
+sed "s/&/\&/g" \
+ | sed "s/</\&lt;/g" \
+ | sed "s/>/\&gt;/g"