Parent Directory | Revision Log
oh, well... serves me good for commiting without testing first -- even one-line changes
1 | dpavlin | 13 | # |
2 | # reformat html inside xml back to html (basically, support for tables) | ||
3 | # | ||
4 | # filed #-# field ### | ||
5 | # ... | ||
6 | |||
7 | sub back2html { | ||
8 | my $html = shift; | ||
9 | |||
10 | my $out; | ||
11 | foreach $line (split(/###/,$html)) { | ||
12 | $out .= "<tr><td>"; | ||
13 | my @items = split(/#-#/,$line); | ||
14 | $out .= join("</td><td>",@items); | ||
15 | $out .= "</td></tr>\n"; | ||
16 | } | ||
17 | dpavlin | 31 | $out =~ s/<br\/*>/<br\/>/g; |
18 | dpavlin | 13 | return $out; |
19 | } | ||
20 | |||
21 | 1; |
Name | Value |
---|---|
cvs2svn:cvs-rev | 1.3 |
ViewVC Help | |
Powered by ViewVC 1.1.26 |