Changeset 708


Ignore:
Timestamp:
1999-10-18T08:44:56+13:00 (25 years ago)
Author:
sjboddie
Message:

fixed problem with titles beginning with tags or html elements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/classify/AZList.pm

    r677 r708  
    134134    foreach $classification (@$classlistref) {
    135135    my $title = $self->{'list'}->{$classification};
     136    $title =~ s/^(&.{1,6};|<[^>]>|[^a-zA-Z0-9])//g; # remove any unwanted stuff
    136137    $title =~ s/^(.).*$/$1/;
    137138    $title =~ tr/[a-z]/[A-Z]/;
Note: See TracChangeset for help on using the changeset viewer.