aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-04-10 18:43:07 -0300
committerEuAndreh <eu@euandre.org>2023-04-10 18:43:10 -0300
commit8a5e1ba89b8df5394c9e46d7149a681cd8f59f88 (patch)
treee697f3d4fffe11e8b4f5be22a78da7b3b1c21ab3 /bin
parentREADME.md: Add old file (diff)
downloaddotfiles-8a5e1ba89b8df5394c9e46d7149a681cd8f59f88.tar.gz
dotfiles-8a5e1ba89b8df5394c9e46d7149a681cd8f59f88.tar.xz
bin/htmlesc: Use "&apos;" over "&#39;"
HTML 5 understands it: https://html.spec.whatwg.org/multipage/named-characters.html
Diffstat (limited to 'bin')
-rwxr-xr-xbin/htmlesc4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/htmlesc b/bin/htmlesc
index c18610d..0e4c75a 100755
--- a/bin/htmlesc
+++ b/bin/htmlesc
@@ -90,7 +90,7 @@ decode() {
-e 's|&lt;|<|g' \
-e 's|&gt;|>|g' \
-e 's|&quot;|"|g' \
- -e "s|&#39;|'|g"
+ -e "s|&apos;|'|g"
}
encode() {
@@ -99,7 +99,7 @@ encode() {
-e 's|<|\&lt;|g' \
-e 's|>|\&gt;|g' \
-e 's|"|\&quot;|g' \
- -e "s|'|\&#39;|g"
+ -e "s|'|\&apos;|g"
}
if [ "$DECODE" = true ]; then