--- loncom/interface/lontemplate.pm 2012/05/12 12:44:12 1.45.6.1
+++ loncom/interface/lontemplate.pm 2012/12/18 15:53:07 1.45.6.3
@@ -1,7 +1,7 @@
# The LearningOnline Network
# "Template" Functions to generate html output
#
-# $Id: lontemplate.pm,v 1.45.6.1 2012/05/12 12:44:12 raeburn Exp $
+# $Id: lontemplate.pm,v 1.45.6.3 2012/12/18 15:53:07 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -40,7 +40,6 @@ use Apache::lontexconvert;
use Apache::lonfeedback;
use Apache::lonrss();
use Apache::lonlocal;
-use Apache::lonhtmlgateway;
use Apache::lonmsgdisplay();
use HTML::Entities();
@@ -128,9 +127,9 @@ sub print_end_template {
sub print_editbox_template {
my ($r,$content,$field) = @_;
$r->print('
');
+ &HTML::Entities::encode($content,'"&<>').
+ '
'."\n");
+ &print_saveall_template($r);
}
sub print_textarea_template {
@@ -176,7 +175,7 @@ sub print_template_fields {
$r->print("