--- loncom/xml/lontexconvert.pm 2003/02/05 22:50:44 1.15 +++ loncom/xml/lontexconvert.pm 2003/02/26 20:22:11 1.18 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # TeX Conversion Module # -# $Id: lontexconvert.pm,v 1.15 2003/02/05 22:50:44 albertel Exp $ +# $Id: lontexconvert.pm,v 1.18 2003/02/26 20:22:11 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -46,6 +46,7 @@ use tth; use vars qw($errorstring); use Apache::lonmsg; use Apache::lonxml; +use Apache::lonmenu; # ====================================================================== Header @@ -70,7 +71,7 @@ sub header { return &Apache::lonxml::xmlbegin(). &Apache::lonxml::fontsettings(). "\n\n". - &Apache::lonxml::registerurl(undef,'tex'). + &Apache::lonmenu::registerurl(undef,'tex'). "\n\n"; } @@ -116,12 +117,14 @@ sub footer { sub to_convert { my ($string) = @_; $string=~s/\/ /g; + $string=&HTML::Entities::decode($string); return &converted(\$string); } sub msgtexconverted { my $message=shift; + $errorstring=''; if ($ENV{'browser.mathml'}) { &tth::ttminit(); if ($ENV{'browser.unicode'}) {