version 1.320, 2006/03/23 23:43:13
|
version 1.322, 2006/03/24 21:40:11
|
Line 2801 form, .inline { display: inline; }
|
Line 2801 form, .inline { display: inline; }
|
style="margin-top: 0px;$addstyle" $addentries> |
style="margin-top: 0px;$addstyle" $addentries> |
END |
END |
&Apache::lontexconvert::jsMath_reset(); |
&Apache::lontexconvert::jsMath_reset(); |
if ($env{'environment.texengine'} eq 'jsMath') { |
if ($env{'environment.texengine'} eq 'jsMath' || |
|
$env{'form.texengine'} eq 'jsMath' ) { |
$bodytag.=&Apache::lontexconvert::jsMath_header(); |
$bodytag.=&Apache::lontexconvert::jsMath_header(); |
} |
} |
|
|
Line 3149 sub end_page {
|
Line 3150 sub end_page {
|
sub html_encode { |
sub html_encode { |
my ($result) = @_; |
my ($result) = @_; |
|
|
$result = &HTML::Entities::encode($result,'"'); |
$result = &HTML::Entities::encode($result,'<>&"'); |
|
|
return $result; |
return $result; |
} |
} |
Line 3157 sub js_ready {
|
Line 3158 sub js_ready {
|
my ($result) = @_; |
my ($result) = @_; |
|
|
$result =~ s/[\n\r]/ /g; |
$result =~ s/[\n\r]/ /g; |
$result =~ s/'/\\'/g; |
$result =~ s/'/\\'/g; |
|
$result =~ s{</script>}{</scrip'+'t>}g; |
|
|
return $result; |
return $result; |
} |
} |