Skip to content

Commit 3e83efa

Browse files
committed
txt2plain: add to git repo
1 parent c3c952f commit 3e83efa

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

txt2plain.pl

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/perl
2+
3+
while(<STDIN>) {
4+
5+
$_ =~ s/\</&lt;/g;
6+
$_ =~ s/\>/&gt;/g;
7+
8+
$_ =~ s/^$/\&nbsp;/g;
9+
10+
$_ =~ s/\/\*/&\#47;*/g;
11+
12+
print $_;
13+
}

0 commit comments

Comments
 (0)