Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: CR/LF to <BR> Formatting Text fields

Quote Reply
Re: CR/LF to <BR> Formatting Text fields In reply to
Hi,

Easiest way would be to add a global called Description_Formatted that looks like:

Code:
sub {
my $tags = shift;
my $description = $tags->{Description};
$description =~ s/\n/<BR>\n/g;
return $description;
}
and then in your template use <%Description_Formatted%>.

Cheers,

Alex

--
Gossamer Threads Inc.
Subject Author Views Date
Thread CR/LF to <BR> Formatting Text fields OnlineMlm 1409 Mar 2, 2001, 10:09 PM
Thread Re: CR/LF to <BR> Formatting Text fields
Alex 1351 Mar 5, 2001, 1:47 PM
Post Re: CR/LF to <BR> Formatting Text fields
OnlineMlm 1346 Mar 5, 2001, 5:20 PM