--- rat/lonpage.pm 2020/03/05 19:24:35 1.137 +++ rat/lonpage.pm 2020/03/06 20:04:01 1.138 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Page Handler # -# $Id: lonpage.pm,v 1.137 2020/03/05 19:24:35 raeburn Exp $ +# $Id: lonpage.pm,v 1.138 2020/03/06 20:04:01 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -368,7 +368,7 @@ sub handler { if (($hash{'encrypted_'.$_}) && ($symb) && (!$env{'request.role.adv'})) { $showsrc .= '?symb='.&Apache::lonenc::encrypted($symb); } elsif ($anchor) { - $showsrc .= $anchor + $showsrc .= $anchor; } $ssibody{$_} = <No iframe support! @@ -947,7 +947,12 @@ sub get_buttons { if (($hash->{'encrypted_'.$rid}) && (!$env{'request.role.adv'})) { $aname = 'LC_'.$rid; } else { - $aname = &escape($symb); + my $shownsymb = $symb; + if ($symb =~ /\#([^\#]+)$/) { + my $escan = &escape('#'); + $shownsymb =~ s/#([^\#]+)$/$escan$1/; + } + $aname = &escape($shownsymb); } my $metainfo = ''; unless ($env{'request.role.adv'}) {