rockbox/www/txt2plain.pl
Daniel Stenberg a8537543a1 use this script to convert a plain ASCII text into something that looks
fine in HTML


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1776 a1c6a512-1295-4272-9138-f99709370657
2002-08-16 08:42:43 +00:00

11 lines
125 B
Perl
Executable file

#!/usr/bin/perl
while(<STDIN>) {
$_ =~ s/\</&lt;/g;
$_ =~ s/\>/&gt;/g;
$_ =~ s/^$/\&nbsp;/g;
print $_;
}