--- loncom/homework/inputtags.pm 2004/03/13 00:36:11 1.136 +++ loncom/homework/inputtags.pm 2004/06/03 14:28:39 1.143 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # input definitons # -# $Id: inputtags.pm,v 1.136 2004/03/13 00:36:11 albertel Exp $ +# $Id: inputtags.pm,v 1.143 2004/06/03 14:28:39 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -118,19 +118,21 @@ sub start_textfield { $Apache::lonxml::evaluate--; if ($Apache::inputtags::status[-1] eq 'CAN_ANSWER') { my $partid=$Apache::inputtags::part; - my $oldresponse = &HTML::Entities::encode($Apache::lonhomework::history{"resource.$partid.$resid.submission"}); + my $oldresponse = &HTML::Entities::encode($Apache::lonhomework::history{"resource.$partid.$resid.submission"},'<>&"'); my $cols = &Apache::lonxml::get_param('cols',$parstack,$safeeval); if ( $cols eq '') { $cols = 80; } my $rows = &Apache::lonxml::get_param('rows',$parstack,$safeeval); - if ( $rows eq '') { $rows = 10; } + if ( $rows eq '') { $rows = 16; } my $addchars=&Apache::lonxml::get_param('addchars',$parstack,$safeeval); $result=''; if ($addchars) { $result.=&addchars('HWVAL_'.$resid,$addchars); } - $result.= '