2 # reformat html inside xml back to html (basically, support for tables)
11 foreach $line (split(/###/,$html)) {
13 my @items = split(/#-#/,$line);
14 if ($items[1] =~ m#(http://[\S]+)\s*.*?#i) {
16 # chop URLS longer than 60 characters
17 my $url = substr($1,0,60);
18 $url .= "..." if (length($1) > 60);
19 $items[1] =~ s#(.*)\b(http://[\S]+)(\b?.*)#$1<a href=\"$2\">$url</a>$3#g;
21 $out .= join("</td><td>",@items);
22 $out .= "</td></tr>\n";
24 $out =~ s/<br\/*>/<br\/>/g;