home · contact · privacy
Move all scripts etc. to their own directory.
[redo-blog] / helpers.sh
diff --git a/helpers.sh b/helpers.sh
deleted file mode 100644 (file)
index c90e077..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/sh
-
-escape_html()
-{
-out=`python3 -c 'import sys, html; print(html.escape(sys.argv[1]))' "$1"`
-printf "%s" "$out"
-}
-
-read_and_escape_file()
-{
-in=`cat "$1"`
-escape_html "$in"
-}
-
-escape_url()
-{
-out=`python3 -c 'import sys, urllib.parse; print(urllib.parse.quote(sys.argv[1]))' "$1"`
-printf "%s" "$out"
-}