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 9644 Aug 19, 2009, 7:34 AM
Thread Re: [nir] Clean Title
Andy 9487 Aug 19, 2009, 7:58 AM
Thread Re: [Andy] Clean Title
nir 9436 Aug 20, 2009, 1:07 AM
Thread Re: [nir] Clean Title
Andy 9474 Aug 20, 2009, 1:55 AM
Thread Re: [Andy] Clean Title
nir 9484 Aug 20, 2009, 2:05 AM
Thread Re: [nir] Clean Title
Andy 9455 Aug 20, 2009, 2:08 AM
Thread Re: [Andy] Clean Title
nir 9446 Aug 20, 2009, 2:38 AM
Thread Re: [nir] Clean Title
Andy 9441 Aug 20, 2009, 2:42 AM
Post Re: [Andy] Clean Title
nir 9426 Aug 20, 2009, 3:21 AM
Thread Re: [Andy] Clean Title
nir 9078 Jan 31, 2010, 6:04 AM
Thread Re: [nir] Clean Title
Andy 9053 Jan 31, 2010, 6:13 AM
Thread Re: [Andy] Clean Title
nir 9056 Jan 31, 2010, 6:35 AM
Thread Re: [nir] Clean Title
Andy 9041 Jan 31, 2010, 8:11 AM
Thread Re: [Andy] Clean Title
nir 9026 Feb 1, 2010, 2:21 AM
Post Re: [nir] Clean Title
Andy 9024 Feb 1, 2010, 3:50 AM