mirror of
https://github.com/moodle/moodle.git
synced 2025-04-19 07:25:30 +02:00
Merged MDL-7493 further fix: strip_tags from title strings because the titles may have HTML in them.
This commit is contained in:
parent
7bb03e8a7b
commit
1f967c82ff
@ -334,8 +334,8 @@ class block_base {
|
||||
if (!empty($CFG->allowuserblockhiding)) {
|
||||
//Accessibility: added 'alt' text for the +- icon.
|
||||
//Theme the buttons using, Admin - Miscellaneous - smartpix.
|
||||
$strshow = addslashes_js(get_string('showblocka', 'access', $this->title));
|
||||
$strhide = addslashes_js(get_string('hideblocka', 'access', $this->title));
|
||||
$strshow = addslashes_js(get_string('showblocka', 'access', strip_tags($this->title)));
|
||||
$strhide = addslashes_js(get_string('hideblocka', 'access', strip_tags($this->title)));
|
||||
$title .= '<input type="image" src="'.$CFG->pixpath.'/t/switch_minus.gif" '.
|
||||
'id="togglehide_inst'.$this->instance->id.'" '.
|
||||
'onclick="elementToggleHide(this, true, function(el) {'.
|
||||
|
Loading…
x
Reference in New Issue
Block a user