--- loncom/xml/lonxml.pm 2002/11/03 19:16:20 1.210 +++ loncom/xml/lonxml.pm 2002/11/06 22:36:08 1.211 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # XML Parser Module # -# $Id: lonxml.pm,v 1.210 2002/11/03 19:16:20 www Exp $ +# $Id: lonxml.pm,v 1.211 2002/11/06 22:36:08 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1046,7 +1046,7 @@ sub get_all_text_unbalanced { } elsif ($token->[0] eq 'E') { $result.=$token->[2]; } - if ($result =~ /(.*)$tag(.*)/) { + if ($result =~ /(.*)\Q$tag\E(.*)/s) { &Apache::lonxml::debug('Got a winner with leftovers ::'.$2); &Apache::lonxml::debug('Result is :'.$1); $result=$1;