Subject: | wrong [url] processing with long link |
With long link, also output is pre-quoted when it should not be, example:
$ perl test.pl
'http://ru.wikipedia.org/wiki/%D0%93%D1%80%D0%B5%D0%B1%D0%B5%D0%BD%D1%87%D0%B0%D1%82%D1%8B%D0%B9_%D1%82%D1%80%D0%B8%D1%82%D0%BE%D0%BD'
<a
href="http://ru.wikipedia.org/wiki/%D0%93%D1%80%D0%B5%D0%B1%D0%B5%D0%BD%D1%87%D0%B0%D1%82%D1%8B%D0%B9_%D1%82%D1%80%D0%B8%D1%82%D0%BE%D0%BD">example</a>
$ cat test.pl
#!/usr/bin/perl
use strict;
use HTML::BBCode;
my $body = '[url=' . $ARGV[ 0 ] . ']example[/url]';
my $bbc = HTML::BBCode -> new();
my $parsed = $bbc -> parse( $body );
print $parsed , "\n";
$