From 13c2d3df0440ce04273de3149631a9bd97490c6e Mon Sep 17 00:00:00 2001 From: Lazaros Koromilas Date: Wed, 15 Jul 2015 15:53:12 +0300 Subject: filters: apply HTML escaping http://www.w3.org/International/questions/qa-escapes#use --- filters/html-converters/txt2html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'filters/html-converters/txt2html') 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 "
"
-cat
+sed "s|&|\\&|g;s|'|\\'|g;s|\"|\\"|g;s|<|\\<|g;s|>|\\>|g"
 echo "
" -- cgit v1.2.3-2-gb3c3