[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [ic] removing new line characters


> suppressed 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
_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.