summaryrefslogtreecommitdiffstats
path: root/filters/html-converters/txt2html
diff options
context:
space:
mode:
authorLibravatarLibravatar Biswakalyan Bhuyan <biswa@surgot.in> 2023-04-06 16:39:52 +0530
committerLibravatarLibravatar Biswakalyan Bhuyan <biswa@surgot.in> 2023-04-06 16:39:52 +0530
commit6fa71c7efadb990aad14d1c6a7833e9cae88436d (patch)
tree5601e8bdd31c113b2dccdb01002daab6dd244eca /filters/html-converters/txt2html
downloadcgit-6fa71c7efadb990aad14d1c6a7833e9cae88436d.tar.gz
cgit-6fa71c7efadb990aad14d1c6a7833e9cae88436d.tar.bz2
cgit-6fa71c7efadb990aad14d1c6a7833e9cae88436d.zip
cgit
Diffstat (limited to 'filters/html-converters/txt2html')
-rwxr-xr-xfilters/html-converters/txt2html4
1 files changed, 4 insertions, 0 deletions
diff --git a/filters/html-converters/txt2html b/filters/html-converters/txt2html
new file mode 100755
index 0000000..495eece
--- /dev/null
+++ b/filters/html-converters/txt2html
@@ -0,0 +1,4 @@
+#!/bin/sh
+echo "<pre>"
+sed "s|&|\\&amp;|g;s|'|\\&apos;|g;s|\"|\\&quot;|g;s|<|\\&lt;|g;s|>|\\&gt;|g"
+echo "</pre>"