Hi-
You can create a new Global by going to the Build in the admin, and then selecting the Template Globals link. Then you would add a new one called:
Description_Formatted =>
And Add this code:
my $tags = shift;
my $description= $tags->{Description};
$description=~ s/\n/<BR>\n/g;
$description= GT::CGI::html_escape($description);
return $description;
}
and then use <%Description_Formatted%> on your template instead of <%Description%>, and then it will keep the line breaks that people put in when they entered their information.
-FrankM
You can create a new Global by going to the Build in the admin, and then selecting the Template Globals link. Then you would add a new one called:
Description_Formatted =>
And Add this code:
Code:
sub { my $tags = shift;
my $description= $tags->{Description};
$description=~ s/\n/<BR>\n/g;
$description= GT::CGI::html_escape($description);
return $description;
}
and then use <%Description_Formatted%> on your template instead of <%Description%>, and then it will keep the line breaks that people put in when they entered their information.
-FrankM