diff options
| author | bptato <nincsnevem662@gmail.com> | 2025-02-19 19:32:43 +0100 |
|---|---|---|
| committer | bptato <nincsnevem662@gmail.com> | 2025-02-19 19:35:07 +0100 |
| commit | 0014b67f76598ed1881d7c91a6bbbf1d70131c83 (patch) | |
| tree | 405ffedc48937038b3477dd5a7b873891c204dc9 | |
| parent | 44b22a2f993ae53ff918d503321cf42dd1952de8 (diff) | |
| download | chawan-0014b67f76598ed1881d7c91a6bbbf1d70131c83.tar.gz | |
uri2html: uri-decode entries
| -rw-r--r-- | adapter/format/uri2html | 3 |
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/&/\&/g;s@.*@<li><a href="&">&</a>@' +"$CHA_LIBEXEC_DIR"/urldec | \ +sed '/^#/d;s/</\>/g;s/>/\</g;s/&/\&/g;s/"/\"/g;s@.*@<li><a href="&">&</a>@' |