about summary refs log tree commit diff
path: root/filters/html-converters
diff options
context:
space:
mode:
authorLazaros Koromilas <lostd@2f30.org>2015-07-15 15:53:12 +0300
committerJason A. Donenfeld <Jason@zx2c4.com>2015-08-12 14:13:44 +0200
commit13c2d3df0440ce04273de3149631a9bd97490c6e (patch)
tree200d71d37560f5b84bdccab16b8c7313641e841f /filters/html-converters
parentgit: update to v2.5.0 (diff)
downloadcgit-pink-13c2d3df0440ce04273de3149631a9bd97490c6e.tar.gz
cgit-pink-13c2d3df0440ce04273de3149631a9bd97490c6e.zip
filters: apply HTML escaping
http://www.w3.org/International/questions/qa-escapes#use
Diffstat (limited to 'filters/html-converters')
-rwxr-xr-xfilters/html-converters/txt2html2
1 files changed, 1 insertions, 1 deletions
diff --git a/filters/html-converters/txt2html b/filters/html-converters/txt2html
index a795995..495eece 100755
--- a/filters/html-converters/txt2html
+++ b/filters/html-converters/txt2html
@@ -1,4 +1,4 @@
 #!/bin/sh
 echo "<pre>"
-cat
+sed "s|&|\\&amp;|g;s|'|\\&apos;|g;s|\"|\\&quot;|g;s|<|\\&lt;|g;s|>|\\&gt;|g"
 echo "</pre>"
n='3' class='logmsg'> 2021-01-12Process htagml file line by lineJune McEnroe This simplifies some things, adds support for line number tag definitions, and should enable combining htagml with other preprocessors in the future. 2021-01-12Split fields by tab onlyJune McEnroe Also don't fail hard on non-forward-search definitions. 2021-01-12List both Makefile and html.sh under README.7June McEnroe 2021-01-12Add htagml exampleJune McEnroe 2021-01-12Use mandoc and htagml for bin htmlJune McEnroe 2021-01-12Add htagmlJune McEnroe 2021-01-12Replace causal.agency with a simple mdoc pageJune McEnroe 2021-01-11Publish "Using vi"June McEnroe 2021-01-11Enable diff.colorMovedJune McEnroe 2021-01-10Set less search case-insensitiveJune McEnroe 2021-01-10Set EXINITJune McEnroe neovim is laggy as hell in my OpenBSD VM, so I switched to vi so I could type without getting frustrated. 2021-01-09Add c -t flag to print expression typeJune McEnroe Also add missing float case. 2021-01-05Update taglineJune McEnroe