aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2025-02-19 19:32:43 +0100
committerbptato <nincsnevem662@gmail.com>2025-02-19 19:35:07 +0100
commit0014b67f76598ed1881d7c91a6bbbf1d70131c83 (patch)
tree405ffedc48937038b3477dd5a7b873891c204dc9
parent44b22a2f993ae53ff918d503321cf42dd1952de8 (diff)
downloadchawan-0014b67f76598ed1881d7c91a6bbbf1d70131c83.tar.gz
uri2html: uri-decode entries
-rw-r--r--adapter/format/uri2html3
1 files changed, 2 insertions, 1 deletions
diff --git a/adapter/format/uri2html b/adapter/format/uri2html
index c804bb3e..b03b1248 100644
--- a/adapter/format/uri2html
+++ b/adapter/format/uri2html
@@ -1,3 +1,4 @@
#!/bin/sh
echo "<!DOCTYPE html>${1:+"<h1>$1</h1><hr>"}<ol>"
-sed '/^#/d;s/&/\&amp;/g;s@.*@<li><a href="&">&</a>@'
+"$CHA_LIBEXEC_DIR"/urldec | \
+sed '/^#/d;s/</\&gt;/g;s/>/\&lt;/g;s/&/\&amp;/g;s/"/\&quot;/g;s@.*@<li><a href="&">&</a>@'