diff --git a/src/homebrew/homebrew.html b/src/homebrew/homebrew.html
index e063138..bb41fc9 100644
--- a/src/homebrew/homebrew.html
+++ b/src/homebrew/homebrew.html
@@ -45,14 +45,14 @@
-
- contact@blapointe.com
+
+ contact@blapointe.com
-
+
(336) 701-6159
diff --git a/src/homebrew/homebrew.sh b/src/homebrew/homebrew.sh
index 5786572..0e7891f 100644
--- a/src/homebrew/homebrew.sh
+++ b/src/homebrew/homebrew.sh
@@ -7,11 +7,23 @@ if ! which gojq; then
go install github.com/itchyny/gojq@latest
fi &> /dev/null
+html_escape_str() {
+ local str="$1"
+ for i in $(seq 0 $(("${#str}"-1))); do
+ LC_CTYPE=C printf '%d;' "'"${1:i:1}
+ done
+}
+html_escape_str contact@blapointe.com
+
while sleep 1; do
- date
cat ./homebrew.yaml \
+ | sed "s/@/$(html_escape_str @ | sed 's/\&/\\\&/g')/g" \
+ | sed "s/mailto:/$(html_escape_str mailto: | sed 's/\&/\\\&/g')/g" \
+ | sed "s/tel:/$(html_escape_str tel: | sed 's/\&/\\\&/g')/g" \
| gojq --yaml-input . \
| tpl --file homebrew.tmpl \
- > ./homebrew.html
+ | tee ./homebrew.html \
+ > /dev/null
+ date
done
diff --git a/src/homebrew/homebrew.yaml b/src/homebrew/homebrew.yaml
index 34e8104..77c2ac1 100644
--- a/src/homebrew/homebrew.yaml
+++ b/src/homebrew/homebrew.yaml
@@ -6,11 +6,11 @@ resume:
title: 'Senior Software Engineer'
contact:
links:
- - text: contact@blapointe.com
- link: mailto:contact@blapointe.com
+ - text: 'contact@blapointe.com'
+ link: 'mailto:contact@blapointe.com'
svg: ''
- text: (336) 701-6159
- link: tel:3367016159
+ link: 'tel:3367016159'
svg: ''
- text: Provo, UT
svg: ''