--- loncom/homework/bridgetask.pm 2020/09/01 16:36:38 1.271 +++ loncom/homework/bridgetask.pm 2025/04/02 23:44:02 1.275 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: bridgetask.pm,v 1.271 2020/09/01 16:36:38 raeburn Exp $ +# $Id: bridgetask.pm,v 1.275 2025/04/02 23:44:02 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -32,12 +32,14 @@ package Apache::bridgetask; use strict; use Apache::lonnet; +use Apache::loncommon; use Apache::File(); use Apache::lonmenu; use Apache::lonlocal; use Apache::lonxml; use Apache::slotrequest(); use Apache::structuretags(); +use HTML::Entities(); use Time::HiRes qw( gettimeofday tv_interval ); use LONCAPA; @@ -410,11 +412,16 @@ sub add_request_another_attempt_button { .'
'; } - if ($env{'request.enc'}) { $symb=&Apache::lonenc::encrypted($symb); } - $symb=&escape($symb); + my $shownsymb; + if ($env{'request.enc'}) { + $shownsymb = &Apache::lonenc::encrypted($symb); + } else { + $shownsymb = $symb; + } + $shownsymb=&escape($shownsymb); $result.= "\n\t".'