aboutsummaryrefslogtreecommitdiff
path: root/index.sh
diff options
context:
space:
mode:
authorJefferson Julio <[email protected]>2021-06-02 23:38:09 -0300
committerJefferson Julio <[email protected]>2021-06-02 23:38:09 -0300
commit7d773221e7711c4e534e89264c719b4cc5aabb1f (patch)
treebaf59501215d3ee874b865c70c9b9d1408545a16 /index.sh
parent5caf63d3897f353717fd69be9174d028fd078b23 (diff)
downloadblog.sh-7d773221e7711c4e534e89264c719b4cc5aabb1f.tar.bz2
blog.sh-7d773221e7711c4e534e89264c719b4cc5aabb1f.zip
support for comments on pages
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>