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
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