Gossamer Forum
Quote Reply
Clean Title
I use this global to insert to the space in the Title the sign "-"
So if the Title is "aaa bbb ccc" Title I will get aaa-bbb-ccc
If I have title like this one "aaa- "bbb" c'cc" I want it to be 111-bbb-ccc

How can I insert list of character that the global will clean when create the CleanTitle,
Like ")(-+\><}{][,/.

sub {
my $in = $_[0];
my @cut = split /\n/, $in;
my @got;

# pass in as "name"
# eg FooBar|IN
foreach (@cut) {
chomp;
s/\r//g;
s/\f//g;
my $name = $_;
#$link = $CFG->{build_root_url}.qq{/search/$name};
my $hash;
$hash->{Title} = $_;
$hash->{CleanTitle} = $_;
$hash->{CleanTitle} =~ s/ /-/sig;
push @got, $hash;
}
return { format_page_loop => \@got };
}
Subject Author Views Date
Thread Clean Title nir 9624 Aug 19, 2009, 7:34 AM
Thread Re: [nir] Clean Title
Andy 9468 Aug 19, 2009, 7:58 AM
Thread Re: [Andy] Clean Title
nir 9417 Aug 20, 2009, 1:07 AM
Thread Re: [nir] Clean Title
Andy 9455 Aug 20, 2009, 1:55 AM
Thread Re: [Andy] Clean Title
nir 9465 Aug 20, 2009, 2:05 AM
Thread Re: [nir] Clean Title
Andy 9436 Aug 20, 2009, 2:08 AM
Thread Re: [Andy] Clean Title
nir 9427 Aug 20, 2009, 2:38 AM
Thread Re: [nir] Clean Title
Andy 9422 Aug 20, 2009, 2:42 AM
Post Re: [Andy] Clean Title
nir 9407 Aug 20, 2009, 3:21 AM
Thread Re: [Andy] Clean Title
nir 9059 Jan 31, 2010, 6:04 AM
Thread Re: [nir] Clean Title
Andy 9034 Jan 31, 2010, 6:13 AM
Thread Re: [Andy] Clean Title
nir 9037 Jan 31, 2010, 6:35 AM
Thread Re: [nir] Clean Title
Andy 9022 Jan 31, 2010, 8:11 AM
Thread Re: [Andy] Clean Title
nir 9007 Feb 1, 2010, 2:21 AM
Post Re: [nir] Clean Title
Andy 9005 Feb 1, 2010, 3:50 AM