Repo containing scripts to be used with dovel, and git hooks that powers our web interface.
Author: brian (git@myr.sh)
Date: Sun Sep 24 23:05:38 2023 -0300
Parent: 2d0aaf8
Fixed escape html
diff --git a/aux.sh b/aux.sh
index 246b1af..472a08c 100755
--- a/aux.sh
+++ b/aux.sh
@@ -1,5 +1,5 @@
#!/bin/sh
escapehtml() {
- printf "%s" "$1" | sed -e 's/</</g' -e 's/>/>/g' -e 's/&/&/g'
+ printf "%s" "$1" | sed -e 's/&/\&/g' -e 's/</\</g' -e 's/>/\>/g'
}