--- loncom/xml/lonxml.pm 2003/02/12 22:04:34 1.230 +++ loncom/xml/lonxml.pm 2003/02/13 21:14:35 1.232 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # XML Parser Module # -# $Id: lonxml.pm,v 1.230 2003/02/12 22:04:34 albertel Exp $ +# $Id: lonxml.pm,v 1.232 2003/02/13 21:14:35 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -603,6 +603,9 @@ sub xmlparse { my ($request,$target,$content_file_string,$safeinit,%style_for_target) = @_; &setup_globals($request,$target); + &Apache::inputtags::initialize_inputtags(); + &Apache::outputtags::initialize_outputtags(); + &Apache::edit::initialize_edit(); # # do we have a course style file? # @@ -1216,7 +1219,7 @@ sub parstring { foreach (@{$token->[3]}) { unless ($_=~/\W/) { my $val=$token->[2]->{$_}; - $val =~ s/([\%\@\\\"])/\\$1/g; + $val =~ s/([\%\@\\\"\'])/\\$1/g; #if ($val =~ m/^[\%\@]/) { $val="\\".$val; } $temp .= "my \$$_=\"$val\";" }