diff options
Diffstat (limited to 'www')
-rwxr-xr-x | www/txt2plain.pl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/www/txt2plain.pl b/www/txt2plain.pl new file mode 100755 index 0000000000..eb630acad0 --- /dev/null +++ b/www/txt2plain.pl | |||
@@ -0,0 +1,11 @@ | |||
1 | #!/usr/bin/perl | ||
2 | |||
3 | while(<STDIN>) { | ||
4 | |||
5 | $_ =~ s/\</</g; | ||
6 | $_ =~ s/\>/>/g; | ||
7 | |||
8 | $_ =~ s/^$/\ /g; | ||
9 | |||
10 | print $_; | ||
11 | } | ||