aboutsummaryrefslogtreecommitdiff
path: root/index.sh
diff options
context:
space:
mode:
Diffstat (limited to 'index.sh')
-rwxr-xr-xindex.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/index.sh b/index.sh
index 4cac655..fae78f9 100755
--- a/index.sh
+++ b/index.sh
@@ -35,6 +35,12 @@ scape-regex () {
sed 's/|/\\|/g'
}
+sanitize-html-entities () {
+ echo "$1" |
+ sed 's/</\&lt;/g' |
+ sed 's/>/\&gt;/g'
+}
+
html () {
cat <<HTML
<!DOCTYPE html>