about summary refs log tree commit diff stats
path: root/adapter/format/uri2html
blob: b03b1248be423efc644509654ede1f45e422cbdc (plain) (blame)
1
2
3
4
#!/bin/sh
echo "<!DOCTYPE html>${1:+"<h1>$1</h1><hr>"}<ol>"
"$CHA_LIBEXEC_DIR"/urldec | \
sed '/^#/d;s/</\&gt;/g;s/>/\&lt;/g;s/&/\&amp;/g;s/"/\&quot;/g;s@.*@<li><a href="&">&</a>@'