htmlentities() to s()

This commit is contained in:
stronk7 2006-04-11 16:09:52 +00:00
parent 3725cc8a58
commit 1b1858d260
15 changed files with 21 additions and 21 deletions

View file

@ -218,7 +218,7 @@ function extract_data($pages, $courseid, $lessonname, $modname) {
$tags = '<div><img>'; // should also allow <b><i>
$string = strip_tags($content,$tags);
//echo htmlentities($string);
//echo s($string);
$matches = array();
// this will look for a non nested tag that is closed
@ -584,4 +584,4 @@ function book_save_objects($chapters, $bookid, $pageid='0') {
return true;
}
?>
?>

View file

@ -765,7 +765,7 @@
$status = update_record("lesson_pages",$page);
if ($CFG->debug>7) {
if (!defined('RESTORE_SILENTLY')) {
echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
echo '<br /><hr />'.s($content).'<br />changed to<br />'.s($result).'<hr /><br />';
}
}
}