1
0
Fork 0
forked from len0rd/rockbox

basic slash treatment and URL-linking added

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1779 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Daniel Stenberg 2002-08-16 09:02:48 +00:00
parent 1880165e2e
commit 1ed48d4975

View file

@ -5,7 +5,11 @@ while(<STDIN>) {
$_ =~ s/\</&lt;/g; $_ =~ s/\</&lt;/g;
$_ =~ s/\>/&gt;/g; $_ =~ s/\>/&gt;/g;
$_ =~ s/^$/\&nbsp;/g; $_ =~ s/(http:\/\/([a-zA-Z0-9_.\/-]*)[^).])/\<a href=\"$1\"\>$1\<\/a\>/g;
$_ =~ s/^$/\&nbsp;/g; # empty lines are nbsp
$_ =~ s/(\\|\/)$/$1&nbsp;/g; # clobber backslash on end of line
print $_; print $_;
} }