diff options
author | Lazaros Koromilas <lostd@2f30.org> | 2015-07-15 12:53:12 +0000 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2015-08-12 12:13:44 +0000 |
commit | 13c2d3df0440ce04273de3149631a9bd97490c6e (patch) | |
tree | 200d71d37560f5b84bdccab16b8c7313641e841f /filters/html-converters/txt2html | |
parent | de83de276bef7509ab8255682595ad4521f3a193 (diff) | |
download | cgit-13c2d3df0440ce04273de3149631a9bd97490c6e.tar cgit-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/txt2html')
-rwxr-xr-x | filters/html-converters/txt2html | 2 |
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|&|\\&|g;s|'|\\'|g;s|\"|\\"|g;s|<|\\<|g;s|>|\\>|g" echo "</pre>" |