I'm using this global to format the description field but I would like it to format multiple description fields.( 4 other fields including the description)
I can just make 4 copies of this but thought there may be a better way.
sub {
my $tags = shift;
my $Description = $tags->{Description};
$Description = GT::CGI::html_escape($Description);
$Description =~ s/\n/<BR>\n/g;
$Description =~ s,\[([/\w\s#"=;:{}]+)\],<$1>,g;
return $Description;
}
ie Description,Description1,Description2,Description3,Description4.
Any pointers.
Thanks
Regards
minesite
I can just make 4 copies of this but thought there may be a better way.
sub {
my $tags = shift;
my $Description = $tags->{Description};
$Description = GT::CGI::html_escape($Description);
$Description =~ s/\n/<BR>\n/g;
$Description =~ s,\[([/\w\s#"=;:{}]+)\],<$1>,g;
return $Description;
}
ie Description,Description1,Description2,Description3,Description4.
Any pointers.
Thanks
Regards
minesite