]> git.mjollnir.org Git - moodle.git/commitdiff
Strip tags from block skip link names
authormoodler <moodler>
Thu, 14 Sep 2006 07:00:43 +0000 (07:00 +0000)
committermoodler <moodler>
Thu, 14 Sep 2006 07:00:43 +0000 (07:00 +0000)
lib/weblib.php

index ca8f543c3a1c42d6ee53fdb31ceeb5256982cc6a..1d13394126d5258ac0db7c4deb61e38c6d7d4a10 100644 (file)
@@ -4799,7 +4799,7 @@ function print_side_block($heading='', $content='', $list=NULL, $icons=NULL, $fo
         $skip_text = get_string('skipblock', 'access').' '.$block_id;
     }
     else {
-        $skip_text = get_string('skipa', 'access', $title);
+        $skip_text = get_string('skipa', 'access', strip_tags($title));
     }
     $skip_link = '<a href="#sb-'.$block_id.'" class="skip-block" title="'.$skip_text.'"><span class="accesshide">'.$skip_text.'</span></a>';
     $skip_dest = '<span id="sb-'.$block_id.'" class="skip-block-to"></span>';