diff --git a/blocks/moodleblock.class.php b/blocks/moodleblock.class.php
index 14bb583b273..5066dd89fc4 100644
--- a/blocks/moodleblock.class.php
+++ b/blocks/moodleblock.class.php
@@ -237,10 +237,12 @@ class block_base {
function _title_html() {
global $CFG;
- $title = '
';
+ //Accessibility: validation, can't have
inside
, use .
+ $title = '';
if (!empty($CFG->allowuserblockhiding)) {
- $title .= '';
+ //Accessibility: added static 'alt' text for the +- icon.
+ $title .= '
';
}
$title .= $this->title;
@@ -249,7 +251,7 @@ class block_base {
$title .= $this->edit_controls;
}
- $title .= '
';
+ $title .= '';
return $title;
}