[ic] removing new line characters

Paul Jordan paul at gishnetwork.com
Fri Sep 26 12:06:19 EDT 2003

interchange-users-bounces at icdevgroup.org wrote:
> I need to strip out the new line characters from a chunk of HTML.  Can
> anyone hook me up with a little Perl for that?
> - Grant

You can make a filter:

CodeDef nonl Filter
CodeDef nonl Routine <<EOR
sub {
   my $val = shift;
   $val =~ s/\n//g;

[filter op="nonl"] junk with newlines [/filter]


More information about the interchange-users mailing list