When formatting text, don't need to clean section summaries and

labels of all Javascript
This commit is contained in:
moodler
2004-09-03 12:42:56 +00:00
parent 91b0c4f3e1
commit 9af5afa62c
3 changed files with 10 additions and 5 deletions
+4 -2
View File
@@ -102,7 +102,8 @@
echo "<td nowrap bgcolor=\"$THEME->cellheading\" class=\"topicsoutlineside\" valign=top width=20>&nbsp;</td>";
echo "<td valign=top bgcolor=\"$THEME->cellcontent\" class=\"topicsoutlinecontent\" width=\"100%\">";
echo format_text($thissection->summary, FORMAT_HTML);
$summaryformatoptions->noclean = true;
echo format_text($thissection->summary, FORMAT_HTML, $summaryformatoptions);
if (isediting($course->id)) {
echo "<a title=\"$streditsummary\" ".
@@ -193,7 +194,8 @@
} else {
echo '<td id="section_'.($section).'" style="vertical-align:top; width: 100%;" '.$colormain.'>';
echo format_text($thissection->summary, FORMAT_HTML);
$summaryformatoptions->noclean = true;
echo format_text($thissection->summary, FORMAT_HTML, $summaryformatoptions);
if (isediting($course->id)) {
echo " <a title=\"$streditsummary\" href=editsection.php?id=$thissection->id>".
+4 -2
View File
@@ -91,7 +91,8 @@
echo "<td nowrap bgcolor=\"$THEME->cellheading\" class=\"weeklyoutlineside\" valign=top width=20>&nbsp;</td>";
echo "<td valign=top bgcolor=\"$THEME->cellcontent\" class=\"weeklyoutlinecontent\" width=\"100%\">";
echo format_text($thissection->summary, FORMAT_HTML);
$summaryformatoptions->noclean = true;
echo format_text($thissection->summary, FORMAT_HTML, $summaryformatoptions);
if (isediting($course->id)) {
echo " <a title=\"$streditsummary\" ".
@@ -186,7 +187,8 @@
echo "<p class=\"weeklydatetext\">$weekday - $endweekday</p>";
echo format_text($thissection->summary, FORMAT_HTML);
$summaryformatoptions->noclean = true;
echo format_text($thissection->summary, FORMAT_HTML, $summaryformatoptions);
if (isediting($course->id)) {
echo " <a title=\"$streditsummary\" href=\"editsection.php?id=$thissection->id\">".
+2 -1
View File
@@ -882,6 +882,7 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false,
$strmovehere = get_string("movehere");
$strmovefull = strip_tags(get_string("movefull", "", "'$USER->activitycopyname'"));
}
$labelformatoptions->noclean = true;
}
$modinfo = unserialize($course->modinfo);
@@ -933,7 +934,7 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false,
if (!$mod->visible) {
echo "<span class=\"dimmed_text\">";
}
echo format_text($extra, FORMAT_HTML);
echo format_text($extra, FORMAT_HTML, $labelformatoptions);
if (!$mod->visible) {
echo "</span>";
}