Gossamer Forum
Quote Reply
Removing <b> in global
Hi, with this global I would like to remove any <b> </b> tags with the description that it returns. Any ideas?

sub {
my (@links,$sth,$link);
my $search_db = $DB->table('Links');
$search_db->select_options ("ORDER BY RAND()","LIMIT $_[0]");
$sth = $search_db->select ( { isValidated => 'Yes', Type => 'Star' });
while (my $link = $sth->fetchrow_hashref()) {
if (length $link->{Description} > 50) {
$link->{Description} = substr($link->{Description}, 0, 500) . '...'; }
$link = Links::SiteHTML::tags('link', $link);
push@links, $link;
}
return {RndLnks=>\@links};
}

--------------------------------
Privacy Software
Subject Author Views Date
Thread Removing <b> in global BLOOD 2772 May 3, 2006, 12:40 PM
Thread Re: [BLOOD] Removing <b> in global
MJB 2710 May 3, 2006, 12:51 PM
Thread Re: [MJB] Removing <b> in global
BLOOD 2706 May 3, 2006, 12:53 PM
Thread Re: [BLOOD] Removing <b> in global
aus_dave 2713 May 3, 2006, 7:07 PM
Post Re: [aus_dave] Removing <b> in global
BLOOD 2698 May 4, 2006, 2:28 AM