diff --git a/blocks/moodleblock.class.php b/blocks/moodleblock.class.php index 47ce5769375..86e01b53a7a 100644 --- a/blocks/moodleblock.class.php +++ b/blocks/moodleblock.class.php @@ -291,8 +291,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 .= '