mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
htmlentities() to s()
This commit is contained in:
parent
3725cc8a58
commit
1b1858d260
15 changed files with 21 additions and 21 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
|
|
@ -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 />';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue