about summary refs log tree commit diff stats
path: root/filters/html-converters
diff options
context:
space:
mode:
authorLazaros Koromilas2015-07-15 15:53:12 +0300
committerJason A. Donenfeld2015-08-12 14:13:44 +0200
commit13c2d3df0440ce04273de3149631a9bd97490c6e (patch)
tree200d71d37560f5b84bdccab16b8c7313641e841f /filters/html-converters
parentgit: update to v2.5.0 (diff)
downloadcgit-13c2d3df0440ce04273de3149631a9bd97490c6e.tar.gz
cgit-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 @@
1#!/bin/sh 1#!/bin/sh
2echo "<pre>" 2echo "<pre>"
3cat 3sed "s|&|\\&amp;|g;s|'|\\&apos;|g;s|\"|\\&quot;|g;s|<|\\&lt;|g;s|>|\\&gt;|g"
4echo "</pre>" 4echo "</pre>"