[ic] removing new line characters
Grant
listbox at email.com
Fri Sep 26 12:42:05 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;
> $val;
> }
> EOR
>
> [filter op="nonl"] junk with newlines [/filter]
>
>
> Paul
That sounds really cool. I'll definitely be using that.
- Grant
More information about the interchange-users
mailing list