--- loncom/homework/structuretags.pm 2005/10/07 13:56:19 1.304 +++ loncom/homework/structuretags.pm 2005/10/17 16:06:32 1.305 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.304 2005/10/07 13:56:19 albertel Exp $ +# $Id: structuretags.pm,v 1.305 2005/10/17 16:06:32 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1063,7 +1063,9 @@ sub start_randomlist { if ($target eq 'answer' || $target eq 'grade' || $target eq 'web' || $target eq 'tex' || $target eq 'analyze') { my $body= &Apache::lonxml::get_all_text("/randomlist",$parser); - my $b_parser= HTML::TokeParser->new(\$body); + my $b_parser= HTML::LCParser->new(\$body); + $b_parser->xml_mode(1); + $b_parser->marked_sections(1); my $b_tok; my @randomlist; my $list_item;