MDL-49789 mod_book: filter book chapter content
[moodle.git] / mod / book / delete.php
index 1706147..71a0c63 100644 (file)
@@ -90,6 +90,7 @@ if ($chapter->subchapter) {
 echo '<br />';
 $continue = new moodle_url('/mod/book/delete.php', array('id'=>$cm->id, 'chapterid'=>$chapter->id, 'confirm'=>1));
 $cancel = new moodle_url('/mod/book/view.php', array('id'=>$cm->id, 'chapterid'=>$chapter->id));
-echo $OUTPUT->confirm("<strong>$chapter->title</strong><p>$strconfirm</p>", $continue, $cancel);
+$title = format_string($chapter->title);
+echo $OUTPUT->confirm("<strong>$title</strong><p>$strconfirm</p>", $continue, $cancel);
 
 echo $OUTPUT->footer();
\ No newline at end of file